public class PrintCentral extends Object implements PrintService, ExportService
| Constructor and Description |
|---|
PrintCentral() |
| Modifier and Type | Method and Description |
|---|---|
void |
exportToPDF(Document data,
String dialogName,
File file)
Fills and exports the report to the given URI.
|
void |
exportToPDF(Document data,
String dialogName,
File file,
Map<String,Object> params)
Fills and exports the report to the given URI.
|
void |
exportToPDF(Document data,
String dialogName,
OutputStream outputStream)
Fills and exports the report to PDF.
|
void |
exportToPDF(Document data,
String dialogName,
OutputStream outputStream,
Map<String,Object> params)
Fills and exports the report to PDF.
|
G9Print |
getG9Print()
Get the g9Print instance that is used to perform print and export.
|
Object |
print(PrintContext pCtx)
Print according to the given PrintContext.
|
void |
setG9Print(G9Print g9Print)
Set the G9Print instance that will be used for performing print and
export.
|
public G9Print getG9Print()
public void setG9Print(G9Print g9Print)
g9Print - the instance to setpublic Object print(PrintContext pCtx)
print in interface PrintServicepCtx - the print contextpublic void exportToPDF(Document data, String dialogName, File file)
ExportServiceexportToPDF in interface ExportServicedata - Data to be printed formed in a DocumentdialogName - The template to be filled and printedfile - File to place the result PDF inpublic void exportToPDF(Document data, String dialogName, OutputStream outputStream)
ExportServiceexportToPDF in interface ExportServicedata - Data to be printed formed in a DocumentdialogName - The template to be filled and printedoutputStream - The output stream to put the PDF inpublic void exportToPDF(Document data, String dialogName, File file, Map<String,Object> params)
ExportServiceexportToPDF in interface ExportServicedata - Data to be printed formed in a DocumentdialogName - The template to be filled and printedfile - File to place the result PDF inparams - Parameters to supplement the data towards the printpublic void exportToPDF(Document data, String dialogName, OutputStream outputStream, Map<String,Object> params)
ExportServiceexportToPDF in interface ExportServicedata - Data to be printed formed in a DocumentdialogName - The template to be filled and printedoutputStream - The output stream to put the PDF inparams - Parameters to supplement the data towards the printCopyright © 2006–2017 Esito AS. All rights reserved.