# Configure Print Area

DsExcel allows you to select a range of cells in order to configure the desired print area in a worksheet for customized printing.

## Content





At times, you may want to print only a specific area in a worksheet instead of printing the whole worksheet.

DsExcel Java supports customized printing by allowing users to select a range of cells in order to configure the desired print area in a worksheet. This can be done by using the [setPrintArea](/document-solutions/java-excel-api/api/online/com/grapecity/documents/excel/IPageSetup.html#setPrintArea) method, [setPrintTitleRows](/document-solutions/java-excel-api/api/online/com/grapecity/documents/excel/IPageSetup.html#setPrintTitleRows) method and [setPrintTitleColumns](/document-solutions/java-excel-api/api/online/com/grapecity/documents/excel/IPageSetup.html#setPrintTitleColumns) method of the [IPageSetup](/document-solutions/java-excel-api/api/online/com/grapecity/documents/excel/IPageSetup.html) interface.

```Java
// Set print area & print titles in the worksheet
worksheet.getPageSetup().setPrintArea("$D$5:$G$10");
worksheet.getPageSetup().setPrintTitleRows("$5:$10");
worksheet.getPageSetup().setPrintTitleColumns("$D:$G");
```