Spire.XLS is a professional Excel API that enables developers to create, manage, manipulate, convert and print Excel worksheets. Get free and professional technical support for Spire.XLS for .NET, Java, Android, C++, Python.

Fri Apr 05, 2019 1:05 pm

Hi all,

I want to ask if it is possible to quick print excel workbooks without showing the printing dialogue? I need to print workbooks in batch hence I want to send them all to the default printer.

ducphu
 
Posts: 11
Joined: Tue Nov 24, 2015 5:13 am

Mon Apr 08, 2019 7:22 am

Hi,

Thank you for contacting us.
Please refer to the following code to print Excel file without showing the printing dialogue.
Code: Select all
Workbook workbook = new Workbook();
workbook.LoadFromFile("sample.xlsx");
//Printing without showing the printing dialogue
workbook.PrintDocument.PrintController = new StandardPrintController();
workbook.PrintDocument.Print();

Sincerely,
Nancy
E-iceblue support team
Last edited by nancy.yang on Wed Apr 10, 2019 9:24 am, edited 2 times in total.
User avatar

nancy.yang
 
Posts: 184
Joined: Wed Apr 03, 2019 2:33 am

Wed Apr 10, 2019 9:23 am

Hi,

Greetings from E-iceblue!
How is your issue going? Could you please give us some feedback at your conveneince?
Thanks in advance.

Sincerely,
Nancy
E-iceblue support team
User avatar

nancy.yang
 
Posts: 184
Joined: Wed Apr 03, 2019 2:33 am

Return to Spire.XLS