|
Style Intelligence v12.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinetsoft.report.io.AbstractGenerator
inetsoft.report.io.ExcelGenerator
public class 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 | |
|---|---|
class |
ExcelGenerator.HeaderOrFooterInfo
Inner class to hold informations of elements in header and footer. |
| Field Summary | |
|---|---|
protected Vector |
allFooterElements
|
protected Vector |
allHeaderElements
|
protected Vector |
defaultFooterElements
|
protected Vector |
defaultHeaderElements
|
static String |
EXCEL_DATA
Excel Sheet file format, link tables and charts. |
static String |
EXCEL_SHEET
Excel Sheet file format, do not break the table content. |
static String |
EXCEL2000
Excel 2000 file format. |
static String |
EXCEL95
Excel 95 file format. |
protected HashMap |
formulaMap
|
protected boolean |
isHeaderFooterInPageSetup
|
protected Margin |
margin
|
static int |
SINGLECOL_WIDTH
If export excel with single column, use this as default column width |
| Fields inherited from class inetsoft.report.io.AbstractGenerator |
|---|
docInfo |
| Constructor Summary | |
|---|---|
protected |
ExcelGenerator(OutputStream output)
Deprecated. replaced by method createExcelGenerator() |
protected |
ExcelGenerator(OutputStream output,
String ver)
Deprecated. replaced by method createExcelGenerator() |
| Method Summary | |
|---|---|
void |
cancel()
Cancel the generation if one if on going. |
static ExcelGenerator |
createExcelGenerator(OutputStream output)
Create an excel generator. |
static ExcelGenerator |
createExcelGenerator(OutputStream output,
String ver)
Create an excel generator. |
void |
generate(Enumeration pages)
Generate an excel file from a collection of pages. |
void |
generate(Enumeration pages,
boolean removal)
Generate an excel file from a collection of pages. |
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. |
Dimension |
getPageSize()
Deprecated. replaced by ReportSheet.getPageSize(). |
protected boolean |
isElementIgnored(ReportElement relem,
Rectangle bounds)
Check if this element will be ignored. |
protected boolean |
isLandscape()
Check if the report is langscape. |
protected boolean |
isPageBreakSupported()
Whether support auto page break in the excel file. |
protected void |
setLandscape(boolean landscape)
set the landscape. |
void |
setPageSize(Dimension pgsize)
Deprecated. replaced by ReportSheet.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 |
| Field Detail |
|---|
public static final String EXCEL2000
public static final String EXCEL95
public static final String EXCEL_SHEET
public static final String EXCEL_DATA
public static final int SINGLECOL_WIDTH
protected HashMap formulaMap
protected Vector defaultHeaderElements
protected Vector defaultFooterElements
protected Vector allHeaderElements
protected Vector allFooterElements
protected Margin margin
protected boolean isHeaderFooterInPageSetup
| Constructor Detail |
|---|
protected ExcelGenerator(OutputStream output)
createExcelGenerator()
output - output stream to write the excel file.
protected ExcelGenerator(OutputStream output,
String ver)
createExcelGenerator()
output - output stream to write the excel file.| Method Detail |
|---|
public static ExcelGenerator createExcelGenerator(OutputStream output)
output - output stream to write the excel file.
public static ExcelGenerator createExcelGenerator(OutputStream output,
String ver)
output - output stream to write the excel file.protected Margin getMargin()
protected int getBaseH()
protected boolean isElementIgnored(ReportElement relem,
Rectangle bounds)
public void setPageSize(Dimension pgsize)
pgsize - page size in points. One inch is 72 points.public Dimension getPageSize()
public void generate(ReportSheet sheet,
Enumeration pages)
throws IOException
IOException
public void generate(ReportSheet report)
throws IOException
report - report to export.
IOException
public void generate(Enumeration pages)
throws IOException
pages - a collection of StylePage objects.
IOException
public void generate(Enumeration pages,
boolean removal)
throws IOException
pages - a collection of StylePage objects.removal - true if should dispose style pages after generating over.
IOExceptionprotected boolean isPageBreakSupported()
public void cancel()
protected void setLandscape(boolean landscape)
protected boolean isLandscape()
|
Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||