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

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

Introduction

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

Prototype

public void setScale(short scale) 

Source Link

Document

Set the scale.

Usage

From source file:net.sf.jasperreports.engine.export.JRXlsExporter.java

License:Open Source License

protected void setScale(Integer scale) {
    if (isValidScale(scale)) {
        HSSFPrintSetup printSetup = sheet.getPrintSetup();
        printSetup.setScale((short) scale.intValue());
    }// w  ww  . jav a  2s. c  o  m
}