Suppose I have an excel file excel_file.xlsx and i want to send it to my printer using Python so I use:
excel_file.xlsx
import os os.startfile(\'path/to/file\',
Turns out, the problem was with Microsoft Excel, os.startfile just sends the file to the system's default app used to open those file types. I just had to change the default to another app (WPS Office in my case) and the problem was solved.
os.startfile