Style Intelligence v12.0

inetsoft.report.io
Class ExcelSheetGenerator

java.lang.Object
  extended by inetsoft.report.io.AbstractGenerator
      extended by inetsoft.report.io.ExcelGenerator
          extended by inetsoft.report.io.ExcelSheetGenerator
All Implemented Interfaces:
Generator
Direct Known Subclasses:
ExcelDataGenerator

public class ExcelSheetGenerator
extends ExcelGenerator

This is an excel generator. It takes a report, or a collection of generated pages, and converts the output to an excel file. The excel output mimics the report layout and have all the information in the report. Due to layout differences, there may be some differences on the look-and-feel of the output and original report.


Nested Class Summary
 
Nested classes/interfaces inherited from class inetsoft.report.io.ExcelGenerator
ExcelGenerator.HeaderOrFooterInfo
 
Field Summary
 
Fields inherited from class inetsoft.report.io.ExcelGenerator
allFooterElements, allHeaderElements, defaultFooterElements, defaultHeaderElements, EXCEL_DATA, EXCEL_SHEET, EXCEL2000, EXCEL95, formulaMap, isHeaderFooterInPageSetup, margin, SINGLECOL_WIDTH
 
Fields inherited from class inetsoft.report.io.AbstractGenerator
docInfo
 
Constructor Summary
protected ExcelSheetGenerator(OutputStream output, String ver)
          Create an excel generator.
 
Method Summary
 void generate(ReportSheet report)
          Generate an excel file from a report.
 void generate(ReportSheet sheet, Enumeration pages)
          Write a collection of pages to text.
protected  int getBaseH()
          Get baseH.
protected  Margin getMargin()
          Get margin.
protected  boolean isElementIgnored(ReportElement relem, Rectangle bounds)
          Check if this element will be ignored.
protected  boolean isPageBreakSupported()
          Whether support auto page break in the excel file.
 
Methods inherited from class inetsoft.report.io.ExcelGenerator
cancel, createExcelGenerator, createExcelGenerator, generate, generate, getPageSize, isLandscape, setLandscape, setPageSize
 
Methods inherited from class inetsoft.report.io.AbstractGenerator
addProgressListener, fireProgressEvent, getCachePages, getOutput, getReportCache, getReportId, removeProgressListener, setDocumentInfo, setOutput, setReportCache, setReportId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExcelSheetGenerator

protected ExcelSheetGenerator(OutputStream output,
                              String ver)
Create an excel generator.

Parameters:
output - output stream to write the excel file.
Method Detail

isPageBreakSupported

protected boolean isPageBreakSupported()
Whether support auto page break in the excel file.

Overrides:
isPageBreakSupported in class ExcelGenerator

generate

public void generate(ReportSheet sheet,
                     Enumeration pages)
              throws IOException
Write a collection of pages to text.

Specified by:
generate in interface Generator
Overrides:
generate in class ExcelGenerator
Throws:
IOException

generate

public void generate(ReportSheet report)
              throws IOException
Generate an excel file from a report.

Specified by:
generate in interface Generator
Overrides:
generate in class ExcelGenerator
Parameters:
report - report to export.
Throws:
IOException

getMargin

protected Margin getMargin()
Get margin.

Overrides:
getMargin in class ExcelGenerator

getBaseH

protected int getBaseH()
Get baseH.

Overrides:
getBaseH in class ExcelGenerator

isElementIgnored

protected boolean isElementIgnored(ReportElement relem,
                                   Rectangle bounds)
Check if this element will be ignored.

Overrides:
isElementIgnored in class ExcelGenerator

Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.