Printing an entire workbook

How can I print all sheets in a workbook.

1 Reply

MW Melba Winshia Syncfusion Team October 26, 2007 08:43 AM UTC

Hi Dave,

Essential XlsIO don't have direct support for printing documents. If MS Excel is present on the system, you can launch the process and print the spreadsheet using the below code snippet:



//Printing the spreadsheet that was created.
System.Diagnostics.Process pr = new System.Diagnostics.Process();
pr.StartInfo.Verb = "Print";
pr.StartInfo.FileName = "Sample.xls";
pr.Start();



Kindly let me know if you have any other questions.

Regards,
Melba

Loader.
Up arrow icon