Document Solutions for Excel, Java Edition | Document Solutions
Features / Print Settings / Configure Sheet Print Settings
In This Topic
    Configure Sheet Print Settings
    In This Topic

    In order to configure the print settings for the sheet, you can use the setPrintGridlines method, setPrintHeadings method, setBlackAndWhite method, setPrintComments method and setPrintErrors method of the IPageSetup interface as shown in the example code shared below.

    Java
    Copy Code
    // Configure sheet print settings
    worksheet.getPageSetup().setPrintGridlines(true);
    worksheet.getPageSetup().setPrintHeadings(true);
    worksheet.getPageSetup().setBlackAndWhite(true);
    worksheet.getPageSetup().setPrintComments(PrintLocation.InPlace);
    worksheet.getPageSetup().setPrintErrors(PrintErrors.Dash);