Search in sources :

Example 1 with PrintSetupRecord

use of org.apache.poi.hssf.record.PrintSetupRecord in project poi by apache.

the class HSSFChart method createPrintSetupRecord.

private PrintSetupRecord createPrintSetupRecord() {
    PrintSetupRecord r = new PrintSetupRecord();
    r.setPaperSize((short) 0);
    r.setScale((short) 18);
    r.setPageStart((short) 1);
    r.setFitWidth((short) 1);
    r.setFitHeight((short) 1);
    r.setLeftToRight(false);
    r.setLandscape(false);
    r.setValidSettings(true);
    r.setNoColor(false);
    r.setDraft(false);
    r.setNotes(false);
    r.setNoOrientation(false);
    r.setUsePage(false);
    r.setHResolution((short) 0);
    r.setVResolution((short) 0);
    r.setHeaderMargin(0.5);
    r.setFooterMargin(0.5);
    // what the ??
    r.setCopies((short) 15);
    return r;
}
Also used : PrintSetupRecord(org.apache.poi.hssf.record.PrintSetupRecord)

Aggregations

PrintSetupRecord (org.apache.poi.hssf.record.PrintSetupRecord)1