# Configure Sheet Print Settings

DsExcel allows you to change the print settings of the page such as whether to print grid lines, headings, comments, and more.

## Content





In order to configure the print settings for the sheet, you can use the [setPrintGridlines](/document-solutions/java-excel-api/api/online/com/grapecity/documents/excel/IPageSetup.html) method, [setPrintHeadings](/document-solutions/java-excel-api/api/online/com/grapecity/documents/excel/IPageSetup.html) method, [setBlackAndWhite](/document-solutions/java-excel-api/api/online/com/grapecity/documents/excel/IPageSetup.html) method, [setPrintComments](/document-solutions/java-excel-api/api/online/com/grapecity/documents/excel/IPageSetup.html) method and [setPrintErrors](/document-solutions/java-excel-api/api/online/com/grapecity/documents/excel/IPageSetup.html) method of the [IPageSetup](/document-solutions/java-excel-api/api/online/com/grapecity/documents/excel/IPageSetup.html) interface as shown in the example code shared below.

```Java
// 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);
```