public interface ProcessHtmlAPI extends ProcessReportAPI
Modifier and Type | Field and Description |
---|---|
static int |
CSS_EXISTS
Assume they have the css file already.
|
static int |
CSS_INCLUDE
Put the css contents in the output (html) file.
|
static int |
CSS_NO
No css.
|
static int |
CSS_SEPARATE
Put the css contents in the css stream.
|
static int |
HTML_2
Create a HTML file that conforms to html 2.0.
|
static int |
HTML_4_1
Create a HTML file that conforms to 4.01.
|
static int |
IE5
Create a HTML file that conforms to the IE 5.0 spec.
|
static int |
IE5_5
Create a HTML file that conforms to the IE 5.5 spec.
|
static int |
IE6
Create a HTML file that conforms to the IE 6.0 spec.
|
static int |
XHTML
Create a HTML file that conforms to the XHTML spec.
|
CHARSET_DEFAULT, CHARSET_RTF, CHARSET_UNICODE, COPY_METADATA_ALWAYS, COPY_METADATA_IF_NO_DATASOURCE, COPY_METADATA_NEVER, DATA_MODE_ALL_ATTRIBUTES, DATA_MODE_DATA, DATA_MODE_EMBED, DATA_MODE_INCLUDE_BITMAPS, DATA_MODE_SELECT, ERROR_HANDLING_ALL, ERROR_HANDLING_NONE, ERROR_HANDLING_TRACK_ERRORS, ERROR_HANDLING_VERIFY, HIDDEN_IGNORE_PRINT_RANGE, HIDDEN_SHOW_ALL_ROWS_COLUMNS, HIDDEN_SHOW_HIDDEN_SHEETS, HIDDEN_SHOW_NO_PRINT, HYPHENATE_OFF, HYPHENATE_ON, HYPHENATE_TEMPLATE, LOCALE_DEFAULT, LOCALE_SYSTEM, RENDER_EXTENT_ALL, RENDER_EXTENT_CROP_CONTENT, RENDER_EXTENT_CROP_MARGINS, TAG_STYLE_CONTROL_2007, TAG_STYLE_FIELD, TAG_STYLE_FIELD_2007, TAG_STYLE_TEXT, TYP_CSV, TYP_DOCX, TYP_HTML, TYP_IMAGE, TYP_PDF, TYP_PPTX, TYP_PRINTER, TYP_PS, TYP_RTF, TYP_TXT, TYP_XLSX
Modifier and Type | Method and Description |
---|---|
void |
addImageName(HtmlImage img)
Set a single image name.
|
void |
addImageNames(java.util.ArrayList imgs)
Set several image names.
|
ProcessHtmlAPI |
duplicate(java.io.OutputStream out,
java.io.OutputStream cssStream)
Creates and returns a copy of this object.
|
java.lang.String |
getCssFilename()
Returns the css filename.
|
java.io.OutputStream |
getCssStream()
Returns the css stream.
|
int |
getCssType()
Returns if the css information will be written to a separate file, as part of the html file,
or skipped (because the file already exists).
|
java.lang.String |
getFilePath()
Get the path that all images will be saved to on the disk.
|
java.lang.String |
getFilePrefix()
Get the prefix that will be part of the filename of all images saved to disk and listed
in the html file.
|
boolean |
getHeadersFooters() |
java.lang.String |
getHtmlPath()
Get the path that all images will be prefixed with in the html file.
|
java.util.ArrayList |
getImageNames()
Get the image names/streams for the images in a report.
|
int |
getReportType()
Get the report format of the output stream.
|
int |
getSpec()
Gets the spec that the produced report must run under.
|
boolean |
getUseTemplatePageWidth() |
boolean |
isEmbedImages()
When set to true, tells the engine to embed all images in the HTML file
instead of using separate image files; more information found on
Wikipedia: http://en.wikipedia.org/wiki/Data_URI_scheme
|
boolean |
isFullFile()
The report can be generated as either a complete html file, or as just the body.
|
boolean |
isSplitPages()
When set to true, tells the engine to split HTML output into multiple
documents, one for each page of the document.
|
void |
setCss(int cssMethod,
java.io.OutputStream cssStream,
java.lang.String cssFileName)
Sets if the css information will be written to a separate file, as part of the html file,
or skipped (because the file already exists).
|
void |
setEmbedImages(boolean setEmbedImages)
When set to true, tells the engine to embed all images in the HTML file
instead of using separate image files; more information found on
Wikipedia: http://en.wikipedia.org/wiki/Data_URI_scheme
|
void |
setFullFile(boolean fullDoc)
The report can be generated as either a complete html file, or as just the body.
|
void |
setHeadersFooters(boolean headerOn)
When set true tells the engine to grab the first header and footer it finds
and places them at the beggining and end of the html document respectivley.
|
void |
setImagePath(java.lang.String file,
java.lang.String html,
java.lang.String prefix)
Set a path that all images will be saved to.
|
void |
setSpec(int spec)
Sets the spec that the produced report must run under.
|
void |
setSplitPages(boolean setSplitPages)
When set to true, tells the engine to split HTML output into multiple
documents, one for each page of the document.
|
void |
setUseTemplatePageWidth(boolean setUsePageWidth)
When set true tells the engine to put the entire page
into a container with margins the same as the template document page width
|
batchNext, batchSetup, buildSchema, close, duplicate, findPodsUsed, getBaseDirectory, getCharset, getCopyMetadata, getDataMode, getDataStream, getDescription, getDrillDownInfo, getErrorInfo, getEventHandler, getHiddenMode, getHyphenate, getImportInfo, getKeywords, getLocale, getNumPages, getOutputBuilderData, getParameters, getRenderExtent, getRenderPages, getReport, getReportTypeString, getSubject, getTemplateVersion, getTimeout, getTitle, getWriteTags, isCopyEmbeddedObjects, isDebugMode, isLayoutDocument, isPageBasedReport, isPreservePodFraming, isRemoveUnusedFormats, isReportTypeExcel, isReportTypeWord, isTrackImports, isUseExternalOutputBuilder, process, processComplete, processData, processData, processSetup, processSetup, setBaseDirectory, setCharset, setCopyEmbeddedObjects, setCopyMetadata, setDataMode, setDataStream, setDebugMode, setDescription, setDrillDownInfo, setEventHandler, setHiddenMode, setHyphenate, setKeywords, setLayoutDocument, setLocale, setOutputBuilderData, setParameters, setPreservePodFraming, setRemoveUnusedFormats, setRenderExtent, setRenderPages, setSubject, setTemplateVersion, setTimeout, setTitle, setTrackErrors, setTrackImports, setUseExternalOutputBuilder, setWriteTags, updatePods
static final int HTML_2
static final int HTML_4_1
static final int IE5
static final int IE5_5
static final int IE6
static final int XHTML
static final int CSS_NO
static final int CSS_INCLUDE
static final int CSS_SEPARATE
static final int CSS_EXISTS
ProcessHtmlAPI duplicate(java.io.OutputStream out, java.io.OutputStream cssStream) throws AlreadyProcessedException, LicenseException, SetupException
out
- The stream to write the report to. If null will create a ByteArrayOutputStream.cssStream
- The css stream to write to. Can be null.AlreadyProcessedException
- thrown if call the process steps out of order or call ones other than data twice.LicenseException
- thrown if the license licenseKey check fails. The message will list the license check that failed.SetupException
int getReportType()
getReportType
in interface ProcessReportAPIBase
void addImageName(HtmlImage img)
img
- The image to add to the list of images for this file.java.lang.IllegalArgumentException
- Thrown if addImageName(s) already calledvoid addImageNames(java.util.ArrayList imgs)
imgs
- The images to add to the list of images for this file.java.lang.IllegalArgumentException
- Thrown if addImageName(s) already calledvoid setImagePath(java.lang.String file, java.lang.String html, java.lang.String prefix)
file
- The path of the file on the disk relative to the default directory of your program.html
- The path of the file relative to the default directory of the client browser.prefix
- The prefix to use when creating the filename. This can be null.java.lang.IllegalArgumentException
- Thrown if addImageName(s) already calledjava.lang.String getFilePath()
java.lang.String getHtmlPath()
java.lang.String getFilePrefix()
java.util.ArrayList getImageNames()
void setFullFile(boolean fullDoc)
fullDoc
- Set to true to return a complete html file, false otherwise.boolean isFullFile()
void setCss(int cssMethod, java.io.OutputStream cssStream, java.lang.String cssFileName) throws java.lang.IllegalArgumentException
cssMethod
- Must be one of the values CSS_NO, CSS_INCLUDE, CSS_SEPARATE, or CSS_EXISTS.cssStream
- The stream to write the css file to. This can (and must) only be set if cssMethod
is CSS_SEPARATE. This file will always be the same every time a given template is run so it can be
generated the first time and just reused without being regenerated after that.cssFileName
- The name of the file when cssMethod is CSS_SEPARATE or CSS_EXISTS. This is
only needed if the report will write the full file. Set to "" or null for other methods.java.lang.IllegalArgumentException
- Thrown if an illegal reportType value is passed in.int getCssType()
java.lang.String getCssFilename()
java.io.OutputStream getCssStream()
void setSpec(int spec) throws java.lang.IllegalArgumentException
spec
- Must be one of the spec final int's from this class: HTML*, NN*, IE*, ...java.lang.IllegalArgumentException
- Thrown if an illegal spec value is passed in.int getSpec()
void setHeadersFooters(boolean headerOn)
headerOn
- true=on false=off, off by defaultboolean getHeadersFooters()
void setUseTemplatePageWidth(boolean setUsePageWidth)
setUsePageWidth
- true=on false=off, on by defaultboolean getUseTemplatePageWidth()
boolean isEmbedImages()
void setEmbedImages(boolean setEmbedImages)
setEmbedImages
- true=embed images; false=separate images, on by defaultboolean isSplitPages()
void setSplitPages(boolean setSplitPages)
setSplitPages
- true=split pages; false=produce one full documentCopyright © 2017 Windward Reports - All Rights Reserved. We are java reporting software