Print Excel workbook using python

前端 未结 5 1552
小鲜肉
小鲜肉 2021-01-03 12:36

Suppose I have an excel file excel_file.xlsx and i want to send it to my printer using Python so I use:

import os
os.startfile(\'path/to/file\',         


        
5条回答
  •  北海茫月
    2021-01-03 13:19

    you could embed vBa on open() command to print the excel file to a default printer using xlsxwriter's utility mentioned in this article: PBPYthon's Embed vBA in Excel

提交回复
热议问题