Category / Section
Does XlsIO provides support for printing?
1 min read
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.
C#
//Printing the spreadsheet that was created. System.Diagnostics.Process pr = new System.Diagnostics.Process(); pr.StartInfo.Verb = "Print"; pr.StartInfo.FileName = "Sample.xlsx";
VB
'Printing the spreadsheet that was created. Dim pr As New System.Diagnostics.Process() pr.StartInfo.Verb = "Print" pr.StartInfo.FileName = "Sample.xlsx" pr.Start()