public interface ProcessHtmlAPI extends ProcessReportAPI
Modifier and Type | Field and Description |
---|---|
static int |
CSS_EXISTS
Deprecated.
Assume they have the css file already.
|
static int |
CSS_INCLUDE
Deprecated.
Put the css contents in the output (html) file.
|
static int |
CSS_NO
Deprecated.
No css.
|
static int |
CSS_SEPARATE
Deprecated.
Put the css contents in the css stream.
|
static int |
HTML_2
Deprecated.
We have never used this inside the engine.
|
static int |
HTML_4_1
Deprecated.
We have never used this inside the engine.
|
static int |
IE5
Deprecated.
We have never used this inside the engine.
|
static int |
IE5_5
Deprecated.
We have never used this inside the engine.
|
static int |
IE6
Deprecated.
We have never used this inside the engine.
|
static int |
XHTML
Deprecated.
We have never used this inside the engine.
|
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_ONLY, 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, MODE_PROCESS_EMBEDDED_ALWAYS, MODE_PROCESS_EMBEDDED_COPY, MODE_PROCESS_EMBEDDED_DROP, MODE_PROCESS_EMBEDDED_IF_DATA_APPLIED, MODE_PROCESS_EMBEDDED_KEEP_ORIGINAL_SCREENSHOT, RENDER_EXTENT_ALL, RENDER_EXTENT_CROP_EVERYTHING, RENDER_EXTENT_CROP_HEADER_AND_FOOTER, RENDER_EXTENT_CROP_MARGINS, RENDER_EXTENT_CROP_TO_CONTENT, 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)
Deprecated.
Set a single image name.
|
void |
addImageNames(java.util.ArrayList<HtmlImage> imgs)
Deprecated.
Set several image names.
|
ProcessHtmlAPI |
duplicate(java.io.OutputStream out,
java.io.OutputStream cssStream)
Deprecated.
Creates and returns a copy of this object.
|
java.lang.String |
getCssFilename()
Deprecated.
Returns the css filename.
|
java.io.OutputStream |
getCssStream()
Deprecated.
Returns the css stream.
|
int |
getCssType()
Deprecated.
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()
Deprecated.
Get the path that all images will be saved to on the disk.
|
java.lang.String |
getFilePrefix()
Deprecated.
Get the prefix that will be part of the filename of all images saved to disk and listed
in the html file.
|
boolean |
getHeadersFooters()
Deprecated.
|
java.lang.String |
getHtmlPath()
Deprecated.
Get the path that all images will be prefixed with in the html file.
|
java.util.ArrayList<HtmlImage> |
getImageNames()
Deprecated.
Get the image names/streams for the images in a report.
|
int |
getReportType()
Deprecated.
Get the report format of the output stream.
|
int |
getSpec()
Deprecated.
Gets the spec that the produced report must run under.
|
boolean |
getUseTemplatePageWidth()
Deprecated.
|
boolean |
isEmbedImages()
Deprecated.
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()
Deprecated.
The report can be generated as either a complete html file, or as just the body.
|
boolean |
isSplitPages()
Deprecated.
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)
Deprecated.
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)
Deprecated.
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)
Deprecated.
The report can be generated as either a complete html file, or as just the body.
|
void |
setHeadersFooters(boolean headerOn)
Deprecated.
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)
Deprecated.
Set a path that all images will be saved to.
|
void |
setSpec(int spec)
Deprecated.
Sets the spec that the produced report must run under.
|
void |
setSplitPages(boolean setSplitPages)
Deprecated.
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)
Deprecated.
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, getModeProcessEmbedded, getNumPages, getOutputBuilder, getOutputBuilderData, getParameters, getProperties, getRenderExtent, getRenderPages, getReport, getReportTypeString, getSubject, getTemplateVersion, getTimeout, getTitle, getWriteTags, hasProcessedTags, isDebugMode, isLayoutDocument, isPageBasedReport, isPreservePodFraming, isRemoveUnusedFormats, isReportTypeExcel, isReportTypeWord, isTrackImports, isUseExternalOutputBuilder, process, processComplete, processData, processData, processSetup, processSetup, setBaseDirectory, setCharset, setCopyMetadata, setDataMode, setDataStream, setDebugMode, setDescription, setDrillDownInfo, setEventHandler, setHiddenMode, setHyphenate, setKeywords, setLayoutDocument, setLicense, setLocale, setModeProcessEmbedded, setOutputBuilder, setOutputBuilderData, setParameters, setPreservePodFraming, setRemoveUnusedFormats, setRenderExtent, setRenderPages, setSubject, setTemplateVersion, setTimeout, setTitle, setTrackErrors, setTrackImports, setUseExternalOutputBuilder, setWriteTags
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<HtmlImage> 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<HtmlImage> 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 © 2002-2021 Windward Studios, LLC. - All Rights Reserved. We are Java document generation software