I need to have a method that takes in a file name and prints the filename as an excel spreadsheet. I do NOT want to open Excel to do if I can help it.
Hi,
Please refer to the following code to print a sheet.
Workbook book = new Workbook();
book.Open(@"D:\test\mytestbook.xls");
Worksheet sheet = book.Worksheets[0];
sheet.SheetToPrinter(strprintername);
Thank you.