Example usage for org.apache.poi.hssf.usermodel HSSFPrintSetup setNoColor

List of usage examples for org.apache.poi.hssf.usermodel HSSFPrintSetup setNoColor

Introduction

In this page you can find the example usage for org.apache.poi.hssf.usermodel HSSFPrintSetup setNoColor.

Prototype

public void setNoColor(boolean mono) 

Source Link

Document

Set whether it is black and white

Usage

From source file:org.adempiere.impexp.AbstractExcelExporter.java

License:Open Source License

protected void formatPage(HSSFSheet sheet) {
    sheet.setFitToPage(true);//from   w  w w . j  av a  2 s . co m
    // Print Setup
    HSSFPrintSetup ps = sheet.getPrintSetup();
    ps.setFitWidth((short) 1);
    ps.setNoColor(true);
    ps.setPaperSize(HSSFPrintSetup.A4_PAPERSIZE);
    ps.setLandscape(false);
}