final boolean usePage = "true".equals
(config.getConfigProperty("org.pentaho.reporting.engine.classic.core.modules.output.table.xls.PrintUsePage"));
final boolean draft = "true".equals
(config.getConfigProperty("org.pentaho.reporting.engine.classic.core.modules.output.table.xls.PrintDraft"));
final PrintSetup printSetup = sheet.getPrintSetup();
ExcelPrintSetupFactory.performPageSetup(printSetup, page, paper, orientation);
printSetup.setScale(scale);
printSetup.setNoColor(noColors);
printSetup.setNotes(notes);
printSetup.setUsePage(usePage);
if (hres > 0)
{
printSetup.setHResolution(hres);
}
if (vres > 0)
{
printSetup.setVResolution(vres);
}
printSetup.setDraft(draft);
final boolean displayGridLines = "true".equals(config.getConfigProperty
("org.pentaho.reporting.engine.classic.core.modules.output.table.xls.GridLinesDisplayed"));
final boolean printGridLines = "true".equals(config.getConfigProperty
("org.pentaho.reporting.engine.classic.core.modules.output.table.xls.GridLinesPrinted"));