public class ProcessTxt extends ProcessReport implements ProcessTxtAPI
ProcessReport.CleanDatasource, ProcessReport.DrillDownTemplate, ProcessReport.PhoneHomeStatsTEMPLATE_TYPE_DOCM, TEMPLATE_TYPE_DOCX, TEMPLATE_TYPE_EXCEL_XML, TEMPLATE_TYPE_HTML, TEMPLATE_TYPE_PPTM, TEMPLATE_TYPE_PPTX, TEMPLATE_TYPE_UNKNOWN, TEMPLATE_TYPE_WORD_11, TEMPLATE_TYPE_XLSM, TEMPLATE_TYPE_XLSXCHARSET_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, TAG_STYLE_CONTROL_2007, TAG_STYLE_FIELD, TAG_STYLE_FIELD_2007, TAG_STYLE_LINK_PPTX, TAG_STYLE_TEXT, TYP_CSV, TYP_DOCX, TYP_EXCEL_ML, TYP_HTML, TYP_IMAGE, TYP_PDF, TYP_PPTX, TYP_PRINTER, TYP_PS, TYP_RTF, TYP_TXT, TYP_WORD_ML, TYP_XLS, TYP_XLSX| Constructor and Description |
|---|
ProcessTxt(java.io.InputStream template)
Create a ProcessTxt object with the passed in template.
|
ProcessTxt(java.io.InputStream xmlData,
java.io.InputStream template,
java.io.OutputStream report)
Create a ProcessReport object with the passed in template & data streams, writing it to
the passed in report stream.
|
ProcessTxt(java.io.InputStream template,
java.io.OutputStream report)
Create a ProcessTxt object with the passed in template, writing it to the passed in report stream.
|
| Modifier and Type | Method and Description |
|---|---|
int |
adjustFontSize(int size)
Return the font size.
|
ProcessReportAPIBase |
duplicate(java.io.OutputStream out)
Creates and returns a copy of this object.
|
java.lang.String |
getFont()
Get the font used when formatting txt output.
|
int |
getFontSize()
Get the font size used when formatting txt output.
|
int |
getReportType()
Get the report format of the output stream.
|
java.lang.String |
getReportTypeString()
Get the report format of the output as a string.
|
boolean |
isBreakPage()
Returns true if a Ctrl-L is in the report for each page break.
|
boolean |
isPageBasedReport()
true if the generated report is page based.
|
boolean |
isShowHeaders()
Returns true if the header and footers are printed in the report.
|
boolean |
isUseMargins()
If true, then the left page margin will be included in the output, creating leading spaces for
each line.
|
boolean |
isUseSoftEoln()
If true, then then soft line breaks will be inserted and paragraphs will wrap to the next line.
|
void |
setBreakPage(boolean breakPage)
Set true if a Ctrl-L is in the report for each page break.
|
void |
setEmbededDataMode(int mode)
Set the embed data setting.
|
void |
setFont(java.lang.String font)
Set the font used when formatting txt output.
|
void |
setFontSize(int twips)
Set the font size used when formatting txt output.
|
void |
setShowHeaders(boolean showHeaders)
Set if the header and footers are printed in the report.
|
void |
setUseMargins(boolean useThem)
If true, then the left page margin will be included in the output, creating leading spaces for
each line.
|
void |
setUseSoftEoln(boolean useThem)
If true, then then soft line breaks will be inserted and paragraphs will wrap to the next line.
|
abort, addImportInfo, adjustFontName, buildSchema, checkTimeout, clean, clean, cleanSelects, cleanSelects, close, findPodsUsed, getBaseDirectory, getCharset, getChartProvider, getChartRenderType, getCompany, getCopyMetadata, getDataMode, getDataStream, getDataWriter, getDebugHandler, getDescription, getDrillDownInfo, getErrorInfo, getEventHandler, getHiddenMode, getHyphenate, getImportInfo, getKeywords, getLocale, getMaxReportPages, getNumPages, getReport, getSubject, getTemplateMetrics, getTemplateMetrics, getTemplateMetrics, getTemplateTypeString, getTemplateVersion, getTimeout, getTitle, getVersion, getVersionMajor, getVersionMinor, getVersionRelease, getWriteTags, hasDatasourcesApplied, init, isCopyEmbeddedObjects, isDebugMode, isIgnoreTags, isLayoutDocument, isPreservePodFraming, isRemoveUnusedFormats, isReportTypeExcel, isReportTypePpt, isReportTypeWord, isTemplateTypeDOCX, isTemplateTypeOpenXml, isTemplateTypePPTX, isTemplateTypeXLSX, isTrackImports, isUseExternalOutputBuilder, loadTemplate, mergePodItemStyles, performLayout, process, processComplete, processData, processData, processSetup, processSetup, setBaseDirectory, setCharset, setCopyEmbeddedObjects, setCopyMetadata, setDataMode, setDataStream, setDebugHandler, setDebugMode, setDescription, setDrillDownInfo, setEventHandler, setHiddenMode, setHyphenate, setIgnoreTags, setKeywords, setLayoutDocument, setLocale, setOutputBuilder, setPreservePodFraming, setRemoveUnusedFormats, setSubject, setTemplateVersion, setTimeout, setTitle, setTrackErrors, setTrackImports, setUseExternalOutputBuilder, setWriteTags, shutdown, statLine, updatePodsequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuildSchema, close, findPodsUsed, getBaseDirectory, getCharset, getCopyMetadata, getDataMode, getDataStream, getDescription, getDrillDownInfo, getErrorInfo, getEventHandler, getHiddenMode, getHyphenate, getImportInfo, getKeywords, getLocale, getNumPages, getReport, getSubject, getTemplateVersion, getTimeout, getTitle, getWriteTags, isCopyEmbeddedObjects, isDebugMode, isLayoutDocument, 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, setPreservePodFraming, setRemoveUnusedFormats, setSubject, setTemplateVersion, setTimeout, setTitle, setTrackErrors, setTrackImports, setUseExternalOutputBuilder, setWriteTags, updatePodspublic ProcessTxt(java.io.InputStream template)
throws LicenseException,
SetupException
template - The report template.LicenseException - thrown if the license licenseKey check fails. The message will list the license check that failed.SetupExceptionpublic ProcessTxt(java.io.InputStream template,
java.io.OutputStream report)
throws LicenseException,
SetupException
template - The report template.report - The stream to write the report to.LicenseException - thrown if the license licenseKey check fails. The message will list the license check that failed.SetupExceptionpublic ProcessTxt(java.io.InputStream xmlData,
java.io.InputStream template,
java.io.OutputStream report)
throws DataConnectionException,
LicenseException,
SetupException
xmlData - The xml data that will be placed into the report where there are xml elements.template - The report template.report - The stream to write the report to.DataConnectionException - thrown if there is a problem with the datasource.LicenseException - thrown if the license licenseKey check fails. The message will list the license check that failed.SetupExceptionpublic ProcessReportAPIBase duplicate(java.io.OutputStream out) throws AlreadyProcessedException, LicenseException, SetupException
duplicate in interface ProcessReportAPIBaseout - The stream to write the report to. If null will create a ByteArrayOutputStream.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.SetupExceptionpublic int getReportType()
getReportType in interface ProcessReportAPIBasegetReportType in interface ProcessTxtAPIpublic java.lang.String getReportTypeString()
getReportTypeString in interface ProcessReportAPIBasepublic boolean isPageBasedReport()
isPageBasedReport in interface ProcessReportAPIBaseisPageBasedReport in class ProcessReportpublic void setEmbededDataMode(int mode)
mode - the embed data setting. You can only pass a 0.public boolean isUseMargins()
isUseMargins in interface ProcessTxtAPIpublic void setUseMargins(boolean useThem)
setUseMargins in interface ProcessTxtAPIuseThem - Set to true to include the page margins, false otherwise.public boolean isUseSoftEoln()
isUseSoftEoln in interface ProcessTxtAPIpublic void setUseSoftEoln(boolean useThem)
setUseSoftEoln in interface ProcessTxtAPIuseThem - Set to true to line wrap paragraphs, false otherwise.public boolean isShowHeaders()
isShowHeaders in interface ProcessTxtAPIpublic void setShowHeaders(boolean showHeaders)
setShowHeaders in interface ProcessTxtAPIshowHeaders - true if the headers and footers are printed in the final report.public boolean isBreakPage()
isBreakPage in interface ProcessTxtAPIpublic void setBreakPage(boolean breakPage)
setBreakPage in interface ProcessTxtAPIbreakPage - true if a Ctrl-L is in the report for each page break.public java.lang.String getFont()
getFont in interface ProcessTxtAPIpublic void setFont(java.lang.String font)
setFont in interface ProcessTxtAPIfont - The name of the font used to format txt output.public int getFontSize()
getFontSize in interface ProcessTxtAPIpublic void setFontSize(int twips)
setFontSize in interface ProcessTxtAPItwips - The size of the font used to format txt output in twips.public int adjustFontSize(int size)
adjustFontSize in class ProcessReportsize - The size of the font in half points. For txt this is always 24
(12 point).Copyright © 2017 Windward Reports - All Rights Reserved. We are java reporting software