如何通过命令行打印excel?

我需要打印而不打开Microsoft Excel。 对于简单的方法,我们可以右键单击Excel文件。 Windows将显示上下文菜单以从上下文菜单中select“打印”选项。

换句话说,我们可以通过命令行打开excel。 像这些

"excel c:\Users\loginid\Documents\data.xlsx" 

但是,如果我需要通过命令行打印什么可能。 什么命令行打印?

如果您只想打印一张工作表,请尝试以下操作:

 1. Use the Explorer, My Computer, or any Open dialog box to display the workbook that you want to print. 2.Right-click on the file. Windows displays a Context menu. 3.Choose the Print option from the Context menu. 4.Windows loads Excel (if it is not already open), opens the workbook, and prints it. The workbook is then closed.