public class HtmlExporter extends Object implements SExporter, Serializable
XExporter
interface that converts Excel data
model io.keikai.model.sys.SBook
into a PDF format written to a OutputStream
Modifier and Type | Field and Description |
---|---|
protected org.zkoss.zul.Chart |
_chart |
protected int |
_outcol1 |
protected int |
_outcol2 |
protected int |
_outrow1 |
protected int |
_outrow2 |
protected String |
_refSheetName |
protected float |
bottomMargin |
protected int[] |
colBreaks |
protected float[] |
columnLeft |
protected int |
currentSheetIndex |
protected int |
endColumn |
protected int |
endRow |
protected int |
firstColumn |
protected float |
footerMargin |
protected float |
headerFooterTotalWidth |
protected float |
headerMargin |
protected Map<String,Integer> |
lastPageRowColumnBounds |
protected float |
leftMargin |
protected int |
pageCount |
protected int |
pageNumber |
protected boolean |
printGridLines |
protected boolean |
printHeadings |
protected float |
rightMargin |
protected int[] |
rowBreaks |
protected float[] |
rowTop |
protected Map<Integer,Map<String,int[]>> |
sheetsWithRepeatingRowsAndColumns |
protected float |
topMargin |
protected float |
totalAvailablePageHeight |
protected float |
totalAvailablePageWidth |
protected SBook |
wb |
Constructor and Description |
---|
HtmlExporter() |
Modifier and Type | Method and Description |
---|---|
void |
enableHeadings(boolean enable)
Enables row and column headings printing
|
void |
export(SBook book,
File file)
Export a book
|
void |
export(SBook workbook,
OutputStream outputStream)
Exports Keikai Spreadsheet
SBook into another format written to a
OutputStream . |
void |
export(SheetRegion sheetRegion,
OutputStream outputStream)
Exports selected area of Keikai Spreadsheet active sheet represented by
io.keikai.model.sys.XRange |
void |
export(SSheet worksheet,
OutputStream outputStream)
Exports Keikai Spreadsheet
SSheet into another format written to a |
protected SBook wb
protected int[] colBreaks
protected int[] rowBreaks
protected int firstColumn
protected int endColumn
protected int endRow
protected int pageCount
protected int pageNumber
protected boolean printGridLines
protected boolean printHeadings
protected float headerFooterTotalWidth
protected float leftMargin
protected float rightMargin
protected float topMargin
protected float bottomMargin
protected float headerMargin
protected float footerMargin
protected Map<Integer,Map<String,int[]>> sheetsWithRepeatingRowsAndColumns
protected float totalAvailablePageWidth
protected float totalAvailablePageHeight
protected float[] columnLeft
protected float[] rowTop
protected int currentSheetIndex
protected int _outcol1
protected int _outcol2
protected int _outrow1
protected int _outrow2
protected org.zkoss.zul.Chart _chart
protected String _refSheetName
public void export(SBook workbook, OutputStream outputStream) throws IOException
SBook
into another format written to a
OutputStream
. Note that it exports entire workbook.export
in interface SExporter
workbook
- outputStream
- IOException
public void export(SSheet worksheet, OutputStream outputStream) throws IOException
SSheet
into another format written to aexport
in interface SExporter
worksheet
- sheet instance that contains selected areaoutputStream
- outoutStream to which exported contents to be writtenIOException
public void export(SBook book, File file) throws IOException
SExporter
export
in interface SExporter
book
- the book to exportIOException
public void export(SheetRegion sheetRegion, OutputStream outputStream) throws IOException
io.keikai.model.sys.XRange
export
in interface SExporter
worksheet
- sheet instance that contains selected areaarea
- area representing selected area to be exportedoutputStream
- outoutStream to which exported contents to be writtenIOException
public void enableHeadings(boolean enable)
enable
- Copyright © 2020. All rights reserved.