public class ProcessPrinter extends ProcessReport implements ProcessPrinterAPI
ProcessReport
ProcessReport.CleanDatasource, ProcessReport.DrillDownTemplate, ProcessReport.PhoneHomeStats
TEMPLATE_TYPE_DOCM, TEMPLATE_TYPE_DOCX, TEMPLATE_TYPE_HTML, TEMPLATE_TYPE_PPTM, TEMPLATE_TYPE_PPTX, TEMPLATE_TYPE_UNKNOWN, TEMPLATE_TYPE_XLSM, TEMPLATE_TYPE_XLSX
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
Constructor and Description |
---|
ProcessPrinter(DataSourceProvider data,
java.io.InputStream template,
java.lang.String printer,
int copies)
Create a ProcessPrinter.
|
ProcessPrinter(java.io.InputStream templateStream)
Create a ProcessPrinter.
|
ProcessPrinter(java.io.InputStream templateStream,
java.lang.String printer)
Create a printer report.
|
ProcessPrinter(ProcessPrinter src)
Creates and returns a copy of this ProcessPrinter object.
|
Modifier and Type | Method and Description |
---|---|
ProcessReportAPIBase |
duplicate(java.io.OutputStream out)
Creates and returns a copy of this ProcessReport object.
|
int |
getCopies()
Gets the total number of copies to be printed.
|
PrinterConfiguration.Duplex |
getDuplex()
Get the printer's duplex setting.
|
java.lang.String |
getFirstPagePrinter()
Gets the name of the first page's printer.
|
int |
getFirstPageTray()
Gets the tray for the first page.
|
java.lang.String |
getJobName()
Get the name of the print job.
|
java.lang.String |
getPrinter()
Gets the printer name.
|
PrinterConfiguration |
getPrinterConfiguration()
Get the printer configuration for the report.
|
int |
getReportType()
Get the report format of the output stream.
|
java.lang.String |
getReportTypeString()
Get the report format of the output as a string.
|
int |
getTray()
Gets the tray to be printed to.
|
boolean |
isPageBasedReport()
true if the generated report is page based.
|
void |
setCopies(int copies)
Sets the total number of copies to be printed.
|
void |
setDuplex(PrinterConfiguration.Duplex value)
Set the printer's duplex setting.
|
void |
setEmbededDataMode(int mode)
Set the embed data setting.
|
void |
setFirstPagePrinter(java.lang.String printer)
Sets the first page printer.
|
void |
setFirstPageTray(int tray)
Sets the tray for the first page.
|
void |
setJobName(java.lang.String name)
Set the name of the print job.
|
void |
setPrinter(java.lang.String printer)
Sets the printer to the specified printer name.
|
void |
setTray(int tray)
Sets the tray to be printed to.
|
abort, addImportInfo, adjustFontName, adjustFontSize, batchNext, batchSetup, 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, getOutputBuilderData, getParameters, getRenderExtent, getRenderPages, getReport, getSubject, getTemplateMetrics, getTemplateMetrics, getTemplateMetrics, getTemplateTypeString, getTemplateVersion, getTimeout, getTitle, getVersion, getVersionMajor, getVersionMinor, getVersionRelease, getWriteTags, hasDatasourcesApplied, init, isCopyEmbeddedObjects, isDebugMode, isIgnoreTags, isLayoutDocument, isPreservePodFraming, isRemoveUnusedFormats, isReportTypeDocx, isReportTypeExcel, isReportTypeOpenXml, isReportTypePpt, isReportTypeWord, isSameOpenXml, 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, setOutputBuilderData, setParameters, setPreservePodFraming, setRemoveUnusedFormats, setRenderExtent, setRenderPages, setSubject, setTemplateVersion, setTimeout, setTitle, setTrackErrors, setTrackImports, setUseExternalOutputBuilder, setWriteTags, shutdown, statLine, updatePods
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
batchNext, batchSetup, buildSchema, close, findPodsUsed, getBaseDirectory, getCharset, getCopyMetadata, getDataMode, getDataStream, getDescription, getDrillDownInfo, getErrorInfo, getEventHandler, getHiddenMode, getHyphenate, getImportInfo, getKeywords, getLocale, getNumPages, getOutputBuilderData, getParameters, getRenderExtent, getRenderPages, 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, setOutputBuilderData, setParameters, setPreservePodFraming, setRemoveUnusedFormats, setRenderExtent, setRenderPages, setSubject, setTemplateVersion, setTimeout, setTitle, setTrackErrors, setTrackImports, setUseExternalOutputBuilder, setWriteTags, updatePods
public ProcessPrinter(java.io.InputStream templateStream, java.lang.String printer) throws LicenseException, SetupException
Objects created with this constructor must call:
Do not pass in buffered streams if you have the option. ProcessReport wraps all streams in buffers, generally BufferedReader and BufferedWriter.
templateStream
- The template.printer
- The name of the printer. Must not be null or empty.LicenseException
- thrown if the license licenseKey check fails. The message will list the license check that failed.SetupException
ProcessReport
public ProcessPrinter(java.io.InputStream templateStream) throws LicenseException, SetupException
Objects created with this constructor must call:
Do not pass in buffered streams if you have the option. ProcessReport wraps all streams in buffers, generally BufferedReader and BufferedWriter.
templateStream
- The template.LicenseException
- thrown if the license licenseKey check fails. The message will list the license check that failed.SetupException
ProcessReport
public ProcessPrinter(DataSourceProvider data, java.io.InputStream template, java.lang.String printer, int copies) throws LicenseException, SetupException
data
- The data source provider.template
- The template.printer
- The printer name. Must not be null or empty.copies
- Number of copies to print. Must be greater than zero. If a number less than one
is specified, one copy will be printed.LicenseException
SetupException
ProcessReport
public ProcessPrinter(ProcessPrinter src) throws LicenseException, AlreadyProcessedException, SetupException
src
- The ProcessPrinter object to copy.LicenseException
- thrown if the license licenseKey check fails. The message will list the license check that failed.AlreadyProcessedException
SetupException
public ProcessReportAPIBase duplicate(java.io.OutputStream out) throws AlreadyProcessedException, LicenseException, SetupException
duplicate
in interface ProcessReportAPIBase
out
- Ignored for printer reports.AlreadyProcessedException
LicenseException
- thrown if the license licenseKey check fails. The message will list the license check that failed.SetupException
public int getReportType()
getReportType
in interface ProcessReportAPIBase
public java.lang.String getReportTypeString()
getReportTypeString
in interface ProcessReportAPIBase
public void setEmbededDataMode(int mode)
mode
- the embed data setting. You can only pass a 0.public boolean isPageBasedReport()
isPageBasedReport
in interface ProcessReportAPIBase
isPageBasedReport
in class ProcessReport
public void setPrinter(java.lang.String printer)
setPrinter
in interface ProcessPrinterAPI
printer
- the name of the printerpublic java.lang.String getPrinter()
getPrinter
in interface ProcessPrinterAPI
public void setCopies(int copies)
ProcessPrinterAPI
setCopies
in interface ProcessPrinterAPI
copies
- the number of copies to printpublic int getCopies()
ProcessPrinterAPI
getCopies
in interface ProcessPrinterAPI
public void setTray(int tray)
setTray
in interface ProcessPrinterAPI
tray
- main traypublic int getTray()
getTray
in interface ProcessPrinterAPI
public void setFirstPagePrinter(java.lang.String printer)
setFirstPagePrinter
in interface ProcessPrinterAPI
printer
- printer namepublic java.lang.String getFirstPagePrinter()
getFirstPagePrinter
in interface ProcessPrinterAPI
public void setFirstPageTray(int tray)
setFirstPageTray
in interface ProcessPrinterAPI
tray
- first-page traypublic int getFirstPageTray()
getFirstPageTray
in interface ProcessPrinterAPI
public PrinterConfiguration getPrinterConfiguration()
ProcessPrinterAPI
getPrinterConfiguration
in interface ProcessPrinterAPI
public void setJobName(java.lang.String name)
ProcessPrinterAPI
setJobName
in interface ProcessPrinterAPI
name
- The print job name.public java.lang.String getJobName()
ProcessPrinterAPI
getJobName
in interface ProcessPrinterAPI
public void setDuplex(PrinterConfiguration.Duplex value)
ProcessPrinterAPI
setDuplex
in interface ProcessPrinterAPI
value
- The desired duplex setting.public PrinterConfiguration.Duplex getDuplex()
ProcessPrinterAPI
getDuplex
in interface ProcessPrinterAPI
Copyright © 2017 Windward Reports - All Rights Reserved. We are java reporting software