jOfficeConvert allows to print an Excel spreadhsheet and send it either to the default printer or to a named printer.

// Load the document
ExcelDocument ed = new ExcelDocument("input.xlsx", new ExcelConvertOptions());
 
// Print to the default printer
ed.printToDefaultPrinter(null);
 
// Print to a named printer
ed.print("my printer", null);

Download Print Excel Full Java Code

 

Tagged: