public class BBJasperReport
Creates a JasperReport to view, print, or save to file in various formats.
To determine which Jaspersoft Studio version is supported in BBj, check the version number that is included in the name of the {bbj install dir}/lib/jasperreports-javaflow-*.jar. For example, jasperreports-javaflow-6.1.0.jar means that this installed version of BBj is compatible with the 6.1.0 version of Jaspersoft Studio.
Modifier and Type | Field and Description |
---|---|
static BBjNumber | CLIENT_OBJECT_ERROR=306 Constant value that represents a client object error |
static BBjNumber | CONNECTION_ERROR=302 Constant value that represents a connection error |
static BBjNumber | FILL_CANCELED=305 Constant value that represents that the fill operation was canceled |
static BBjNumber | FILL_ERROR=304 Constant value that represents a fill error |
static BBjNumber | REPORT_ERROR=301 Constant value that represents a error return code |
static BBjNumber | SUCCESS=0 Constant value that represents a successful return code |
static BBjNumber | VIRTUALIZATION_THRESHOLD_SIZE=300 Specifies the number of pages of the filled report created in memory before virutalization will begin. |
Constructor and Description |
---|
BBJasperReport(BBjString p_reportFile$, BBjString p_connectString$) Constructor Constructs a BBJasperReport given a report file and connect string |
BBJasperReport(BBjString p_reportFile$, ResultSet p_rs!) Constructor Constructs a BBJasperReport given a report file and result set |
BBJasperReport(BBjString p_reportFile$, Collection p_collection!) Constructor Constructs a BBJasperReport given a report file, result set, and report parameters |
BBJasperReport(BBjString p_reportFile$, JRDataSource p_jrdatasource!) Constructor Constructs a BBJasperReport given a report file, JRDataSource, and report parameters |
BBJasperReport(BBjString p_reportFile$, BBjString p_connectString$, HashMap p_params!) Constructor Constructs a BBJasperReport given a report file, connect string, and report parameters |
BBJasperReport(BBjString p_reportFile$, ResultSet p_rs!, HashMap p_params!) Constructor Constructs a BBJasperReport given a report file, result set, and report parameters |
BBJasperReport(BBjString p_reportFile$, Collection p_collection!, HashMap p_params!) Constructor Constructs a BBJasperReport given a report file, result set, and report parameters |
BBJasperReport(BBjString p_reportFile$, JRDataSource p_jrdatasource!, HashMap p_params!) Constructor Constructs a BBJasperReport given a report file, JRDataSource, and report parameters |
BBJasperReport(BBjString p_reportFile$, BBjString p_connectString$, HashMap p_params!, BBjString p_locale$) Constructor Constructs a BBJasperReport given a report file, connect string, report parameters, and locale |
BBJasperReport(BBjString p_reportFile$, ResultSet p_rs!, HashMap p_params!, BBjString p_locale$) Constructor Constructs a BBJasperReport given a report file, result set, report parameters, and locale |
BBJasperReport(BBjString p_reportFile$, Collection p_collection!, HashMap p_params!, BBjString p_locale$) Constructor Constructs a BBJasperReport given a report file, result set, report parameters, and locale |
BBJasperReport(BBjString p_reportFile$, JRDataSource p_jrdatasource!, HashMap p_params!, BBjString p_locale$) Constructor Constructs a BBJasperReport given a report file, JRDataSource, report parameters, and locale |
Modifier and Type | Method and Description |
---|---|
void | appendReport(BBJasperReport p_report!) appendReport Appends the passed BBJasperReport to the current report |
void | cleanupVirtualization() cleanupVirtualization Removes temporary files that are created when virtualization is used. |
BBnet.sf.jasperreports.engine.JasperReport | clone() clone Creates and returns a copy of the current BBJasperReport object |
BBnet.sf.jasperreports.engine.JasperReport | createSubReport(BBjString p_reportFile$, HashMap p_params!) createSubReport Creates a sub report, which inherits parameters from this report |
void | destroy() destroy Destroys the BBJasperReport object |
void | email(Email p_email!) email Emails the report as an attachment An error will be thrown if not successful. |
void | exportToCSV(BBjNumber p_onClient, BBjString p_filepath$) exportToCSV Exports the report in CSV file format |
void | exportToCSV(BBjNumber p_onClient, BBjString p_filepath$, BBJasperCSVExporter p_bbjasperCSVExporter!) exportToCSV Exports the report in CSV file format |
void | exportToDOCX(BBjNumber p_onClient, BBjString p_filepath$) exportToDOCX Exports the report in DOCX file format |
void | exportToDOCX(BBjNumber p_onClient, BBjString p_filepath$, BBJasperDOCXExporter p_bbjasperDOCXExporter!) exportToDOCX Exports the report in DOCX file format |
void | exportToHTML(BBjNumber p_onClient, BBjString p_filepath$) exportToHTML Exports the report in HTML file format |
void | exportToHTML(BBjNumber p_onClient, BBjString p_filepath$, BBJasperHTMLExporter p_bbjasperHTMLExporter!) exportToHTML Exports the report in HTML file format |
void | exportToJRPRINT(BBjNumber p_onClient, BBjString p_filepath$) exportToJRPRINT Exports the report in JRPRNT file format |
void | exportToODS(BBjNumber p_onClient, BBjString p_filepath$) exportToODS Exports the report in ODS file format |
void | exportToODS(BBjNumber p_onClient, BBjString p_filepath$, BBJasperODSExporter p_bbjasperODSExporter!) exportToODS Exports the report in ODS file format |
void | exportToODT(BBjNumber p_onClient, BBjString p_filepath$) exportToODT Exports the report in ODT file format |
void | exportToODT(BBjNumber p_onClient, BBjString p_filepath$, BBJasperODTExporter p_bbjasperODTExporter!) exportToODT Exports the report in ODT file format |
void | exportToPDF(BBjNumber p_onClient, BBjString p_filepath$) exportToPDF Exports the report in PDF file format |
void | exportToPDF(BBjNumber p_onClient, BBjString p_filepath$, BBJasperPDFExporter p_bbjasperPDFExporter!) exportToPDF Exports the report in PDF file format |
void | exportToPPTX(BBjNumber p_onClient, BBjString p_filepath$) exportToPPTX Exports the report in PPTX file format |
void | exportToPPTX(BBjNumber p_onClient, BBjString p_filepath$, BBJasperPPTXExporter p_bbjasperPPTXExporter!) exportToPPTX Exports the report in PPTX file format |
void | exportToRTF(BBjNumber p_onClient, BBjString p_filepath$) exportToRTF Exports the report in RTF file format |
void | exportToRTF(BBjNumber p_onClient, BBjString p_filepath$, BBJasperRTFExporter p_bbjasperRTFExporter!) exportToRTF Exports the report in RTF file format |
void | exportToTXT(BBjNumber p_onClient, BBjString p_filepath$, BBjNumber p_pageWidth, BBjNumber p_pageHeight, BBjNumber p_charWidth, BBjNumber p_charHeight) exportToTXT Exports the report in TXT file format |
void | exportToTXT(BBjNumber p_onClient, BBjString p_filepath$, BBjNumber p_pageWidth, BBjNumber p_pageHeight, BBjNumber p_charWidth, BBjNumber p_charHeight, BBJasperTXTExporter p_bbjasperTXTExporter!) exportToTXT Exports the report in TXT file format |
void | exportToXLS(BBjNumber p_onClient, BBjString p_filepath$) exportToXLS Exports the report in XLS file format |
void | exportToXLS(BBjNumber p_onClient, BBjString p_filepath$, BBjNumber p_multipleSheets) exportToXLS Exports the report in XLS file format |
void | exportToXLS(BBjNumber p_onClient, BBjString p_filepath$, BBJasperXLSExporter p_bbjasperXLSExporter!) exportToXLS Exports the report in XLS file format |
void | exportToXLS(BBjNumber p_onClient, BBjString p_filepath$, BBjNumber p_multipleSheets, BBJasperXLSExporter p_bbjasperXLSExporter!) exportToXLS Exports the report in XLS file format |
void | exportToXLSX(BBjNumber p_onClient, BBjString p_filepath$) exportToXLSX Exports the report in XLSX file format |
void | exportToXLSX(BBjNumber p_onClient, BBjString p_filepath$, BBJasperXLSXExporter p_bbjasperXLSXExporter!) exportToXLSX Exports the report in XLSX file format |
void | exportToXML(BBjNumber p_onClient, BBjString p_filepath$, BBjNumber p_isEmbeddingImages) exportToXML Exports the report in XML file format |
void | exportToXML(BBjNumber p_onClient, BBjString p_filepath$, BBjNumber p_isEmbeddingImages, BBJasperXMLExporter p_bbjasperXMLExporter!) exportToXML Exports the report in XML file format |
BBjNumber | fill() fill Fills the report with data |
BBjNumber | fill(BBjNumber p_showProgress) fill Fills the report with data |
net.sf.jasperreports.engine.JasperPrint@ | getClientJasperPrint() getClientJasperPrint Creates (if necessary) and returns the client JasperPrint object |
BBjString | getConnectString() getConnectString Returns the JDBC connect string |
BBjString | getDefaultFilePrefix() getDefaultFilePrefix returns the default file prefix for temporary files like email attachements |
net.sf.jasperreports.engine.JasperPrint | getJasperPrint() getJasperPrint Returns the JasperPrint object |
net.sf.jasperreports.engine.JasperReport | getJasperReport() getJasperReport Returns the JasperReport object |
BBjNumber | getNumPages() Returns the number of pages in the report |
Object | getParam(BBjString p_key$) getParam Returns an individual parameter |
HashMap | getParams() getParams Returns all report parameters |
BBjString | getReportDir() getReportDir Returns the report directory |
BBjString | getReportFile() getReportFile Returns the report file |
BBjNumber | print(BBjNumber p_onClient, BBjNumber p_dialog) print Prints the report |
BBjNumber | print(BBjNumber p_onClient, BBjNumber p_dialog, BBJasperPrintServiceExporter p_bbjasperPrintServiceExporter!) print Prints the report |
void | putParam(BBjString p_key$, Object p_value!) putParam Sets an individual report parameter |
void | putParams(HashMap p_hashMap!) putParams Sets report parameters |
static Class | registerJDBCDriver(BBjString p_jdbcDriverClass$) registerJDBCDriver Registers the passed JDBC driver class |
void | removeParam(BBjString p_key$) removeParam Removes an individual report parameter |
void | removeParams() removeParams Removes all report parameters |
void | setJasperReport(net.sf.jasperreports.engine.JasperReport p_report!) setJasperReport Sets the working JasperReport object |
void | setLocale(Locale p_locale!) setLocale Sets the report locale parameter given a Java Locale object |
void | setLocale(BBjString p_localeString$) setLocale Sets the report locale parameter given a string |
void | setMaxPages(BBjNumber p_maxPages) setMaxPages Sets the max number of report pages |
void | setupVirtualization() setupVirtualization
Sets virtualization on. |
void | setupVirtualization(BBjNumber p_thresholdSize) setupVirtualization
Sets when virtualization will occur. |
void | setupVirtualization(BBjNumber p_thresholdSize, BBjString p_virtualizationDirectory$) setupVirtualization
Sets when virtualization will occur and where the temporary files will be created. |
public static BBjNumber CLIENT_OBJECT_ERROR=306
Constant value that represents a client object error
public static BBjNumber CONNECTION_ERROR=302
Constant value that represents a connection error
public static BBjNumber FILL_CANCELED=305
Constant value that represents that the fill operation was canceled
public static BBjNumber FILL_ERROR=304
Constant value that represents a fill error
public static BBjNumber REPORT_ERROR=301
Constant value that represents a error return code
public static BBjNumber SUCCESS=0
Constant value that represents a successful return code
public static BBjNumber VIRTUALIZATION_THRESHOLD_SIZE=300
Specifies the number of pages of the filled report created in memory before virutalization will begin.
public BBJasperReport(BBjString p_reportFile$, BBjString p_connectString$)
Constructor Constructs a BBJasperReport given a report file and connect string
p_reportFile$
Jrxml or jasper report filep_connectString$
JDBC connect stringpublic BBJasperReport(BBjString p_reportFile$, ResultSet p_rs!)
Constructor Constructs a BBJasperReport given a report file and result set
p_reportFile$
Jrxml or jasper report filep_rs!
Result set contaning the data for the report 13.0
public BBJasperReport(BBjString p_reportFile$, Collection p_collection!)
Constructor Constructs a BBJasperReport given a report file, result set, and report parameters
p_reportFile$
Jrxml or jasper report filep_collection!
Collection contaning the data for the report 14.30
public BBJasperReport(BBjString p_reportFile$, JRDataSource p_jrdatasource!)
Constructor Constructs a BBJasperReport given a report file, JRDataSource, and report parameters
p_reportFile$
Jrxml or jasper report filep_jrdatasource!
JRDataSource contaning the data for the report 16.00
public BBJasperReport(BBjString p_reportFile$, BBjString p_connectString$, HashMap p_params!)
Constructor Constructs a BBJasperReport given a report file, connect string, and report parameters
p_reportFile$
Jrxml or jasper report filep_connectString$
JDBC connect stringp_params!
Report parameterspublic BBJasperReport(BBjString p_reportFile$, ResultSet p_rs!, HashMap p_params!)
Constructor Constructs a BBJasperReport given a report file, result set, and report parameters
p_reportFile$
Jrxml or jasper report filep_rs!
Result set contaning the data for the reportp_params!
Report parameters 13.0
public BBJasperReport(BBjString p_reportFile$, Collection p_collection!, HashMap p_params!)
Constructor Constructs a BBJasperReport given a report file, result set, and report parameters
p_reportFile$
Jrxml or jasper report filep_collection!
Collection contaning the data for the reportp_params!
Report parameters 14.30
public BBJasperReport(BBjString p_reportFile$, JRDataSource p_jrdatasource!, HashMap p_params!)
Constructor Constructs a BBJasperReport given a report file, JRDataSource, and report parameters
p_reportFile$
Jrxml or jasper report filep_jrdatasource!
JRDataSource contaning the data for the reportp_params!
Report parameters 16.00
public BBJasperReport(BBjString p_reportFile$, BBjString p_connectString$, HashMap p_params!, BBjString p_locale$)
Constructor Constructs a BBJasperReport given a report file, connect string, report parameters, and locale
p_reportFile$
Jrxml or jasper report filep_connectString$
JDBC connect stringp_params!
Report parametersp_locale$
Localepublic BBJasperReport(BBjString p_reportFile$, ResultSet p_rs!, HashMap p_params!, BBjString p_locale$)
Constructor Constructs a BBJasperReport given a report file, result set, report parameters, and locale
p_reportFile$
Jrxml or jasper report filep_rs!
Result set contaning the data for the reportp_params!
Report parametersp_locale$
Locale 13.0
public BBJasperReport(BBjString p_reportFile$, Collection p_collection!, HashMap p_params!, BBjString p_locale$)
Constructor Constructs a BBJasperReport given a report file, result set, report parameters, and locale
p_reportFile$
Jrxml or jasper report filep_collection!
Collection contaning the data for the reportp_params!
Report parametersp_locale$
Locale 14.30
public BBJasperReport(BBjString p_reportFile$, JRDataSource p_jrdatasource!, HashMap p_params!, BBjString p_locale$)
Constructor Constructs a BBJasperReport given a report file, JRDataSource, report parameters, and locale
p_reportFile$
Jrxml or jasper report filep_jrdatasource!
JRDataSource contaning the data for the reportp_params!
Report parametersp_locale$
Locale 16.00
public void appendReport(BBJasperReport p_report!)
appendReport Appends the passed BBJasperReport to the current report
p_report!
BBJasperReport object to append 13.0
public void cleanupVirtualization()
cleanupVirtualization Removes temporary files that are created when virtualization is used.
19.00
public BBnet.sf.jasperreports.engine.JasperReport clone()
clone Creates and returns a copy of the current BBJasperReport object
public BBnet.sf.jasperreports.engine.JasperReport createSubReport(BBjString p_reportFile$, HashMap p_params!)
createSubReport Creates a sub report, which inherits parameters from this report
p_reportFile$
Specifies a jrxml or jasper report filep_params!
Hashmap that contains report parameterspublic void destroy()
destroy Destroys the BBJasperReport object
public void email(Email p_email!)
email Emails the report as an attachment
An error will be thrown if not successful.
p_email!
Email object that will be used to send the report via emailpublic void exportToCSV(BBjNumber p_onClient, BBjString p_filepath$)
exportToCSV Exports the report in CSV file format
p_onClient
Specify TRUE for client or FALSE for the serverp_filepath$
Path to file to export topublic void exportToCSV(BBjNumber p_onClient, BBjString p_filepath$, BBJasperCSVExporter p_bbjasperCSVExporter!)
exportToCSV Exports the report in CSV file format
p_onClient
Specify TRUE for client or FALSE for the serverp_filepath$
Path to file to export top_bbjasperCSVExporter!
BBJasperCSVExporter which object contains CSV export options 13.0
public void exportToDOCX(BBjNumber p_onClient, BBjString p_filepath$)
exportToDOCX Exports the report in DOCX file format
p_onClient
Specify TRUE for client or FALSE for the serverp_filepath$
Path to file to export topublic void exportToDOCX(BBjNumber p_onClient, BBjString p_filepath$, BBJasperDOCXExporter p_bbjasperDOCXExporter!)
exportToDOCX Exports the report in DOCX file format
p_onClient
Specify TRUE for client or FALSE for the serverp_filepath$
Path to file to export top_bbjasperDOCXExporter!
BBJasperDOCXExporter object which contains DOCX export options 13.0
public void exportToHTML(BBjNumber p_onClient, BBjString p_filepath$)
exportToHTML Exports the report in HTML file format
p_onClient
Specify TRUE for client or FALSE for the serverp_filepath$
Path to file to export topublic void exportToHTML(BBjNumber p_onClient, BBjString p_filepath$, BBJasperHTMLExporter p_bbjasperHTMLExporter!)
exportToHTML Exports the report in HTML file format
p_onClient
Specify TRUE for client or FALSE for the serverp_filepath$
Path to file to export top_bbjasperHTMLExporter!
BBJasperHTMLExporter object which specifies PDF export options 13.0
public void exportToJRPRINT(BBjNumber p_onClient, BBjString p_filepath$)
exportToJRPRINT Exports the report in JRPRNT file format
p_onClient
Specify TRUE for client or FALSE for the serverp_filepath$
Path to file to export topublic void exportToODS(BBjNumber p_onClient, BBjString p_filepath$)
exportToODS Exports the report in ODS file format
p_onClient
Specify TRUE for client or FALSE for the serverp_filepath$
Path to file to export topublic void exportToODS(BBjNumber p_onClient, BBjString p_filepath$, BBJasperODSExporter p_bbjasperODSExporter!)
exportToODS Exports the report in ODS file format
p_onClient
Specify TRUE for client or FALSE for the serverp_filepath$
Path to file to export top_bbjasperODSExporter!
BBJasperODSExporter object which contains ODS export options 13.0
public void exportToODT(BBjNumber p_onClient, BBjString p_filepath$)
exportToODT Exports the report in ODT file format
p_onClient
Specify TRUE for client or FALSE for the serverp_filepath$
Path to file to export topublic void exportToODT(BBjNumber p_onClient, BBjString p_filepath$, BBJasperODTExporter p_bbjasperODTExporter!)
exportToODT Exports the report in ODT file format
p_onClient
Specify TRUE for client or FALSE for the serverp_filepath$
Path to file to export top_bbjasperODTExporter!
BBJasperODTExporter object which contains ODT export options 13.0
public void exportToPDF(BBjNumber p_onClient, BBjString p_filepath$)
exportToPDF Exports the report in PDF file format
p_onClient
Specify TRUE for client or FALSE for the serverp_filepath$
Path to file to export topublic void exportToPDF(BBjNumber p_onClient, BBjString p_filepath$, BBJasperPDFExporter p_bbjasperPDFExporter!)
exportToPDF Exports the report in PDF file format
p_onClient
Specify TRUE for client or FALSE for the serverp_filepath$
Path to file to export top_bbjasperPDFExporter!
BBJasperPDFExporter object which specifies PDF export options 13.0
public void exportToPPTX(BBjNumber p_onClient, BBjString p_filepath$)
exportToPPTX Exports the report in PPTX file format
p_onClient
Specify TRUE for client or FALSE for the serverp_filepath$
Path to file to export topublic void exportToPPTX(BBjNumber p_onClient, BBjString p_filepath$, BBJasperPPTXExporter p_bbjasperPPTXExporter!)
exportToPPTX Exports the report in PPTX file format
p_onClient
Specify TRUE for client or FALSE for the serverp_filepath$
Path to file to export top_bbjasperPPTXExporter!
BBJasperPPTXExporter object which contains PPTX export options 13.0
public void exportToRTF(BBjNumber p_onClient, BBjString p_filepath$)
exportToRTF Exports the report in RTF file format
p_onClient
Specify TRUE for client or FALSE for the serverp_filepath$
Path to file to export topublic void exportToRTF(BBjNumber p_onClient, BBjString p_filepath$, BBJasperRTFExporter p_bbjasperRTFExporter!)
exportToRTF Exports the report in RTF file format
p_onClient
Specify TRUE for client or FALSE for the serverp_filepath$
Path to file to export top_bbjasperRTFExporter!
BBJasperRTFxporter object which contains RTF export options 13.0
public void exportToTXT(BBjNumber p_onClient, BBjString p_filepath$, BBjNumber p_pageWidth, BBjNumber p_pageHeight, BBjNumber p_charWidth, BBjNumber p_charHeight)
exportToTXT Exports the report in TXT file format
p_onClient
Specify TRUE for client or FALSE for the serverp_filepath$
Path to file to export top_pageWidth
Page widthp_pageHeight
Page heightp_charWidth
Character widthp_charHeight
Character heightpublic void exportToTXT(BBjNumber p_onClient, BBjString p_filepath$, BBjNumber p_pageWidth, BBjNumber p_pageHeight, BBjNumber p_charWidth, BBjNumber p_charHeight, BBJasperTXTExporter p_bbjasperTXTExporter!)
exportToTXT Exports the report in TXT file format
p_onClient
Specify TRUE for client or FALSE for the serverp_filepath$
Path to file to export top_pageWidth
Page widthp_pageHeight
Page heightp_charWidth
Character widthp_charHeight
Character heightp_bbjasperTXTExporter!
BBJasperTXTExporter object which contains TXT export options 13.0
public void exportToXLS(BBjNumber p_onClient, BBjString p_filepath$)
exportToXLS Exports the report in XLS file format
p_onClient
Specify TRUE for client or FALSE for the serverp_filepath$
Path to file to export topublic void exportToXLS(BBjNumber p_onClient, BBjString p_filepath$, BBjNumber p_multipleSheets)
exportToXLS Exports the report in XLS file format
p_onClient
Specify TRUE for client or FALSE for the serverp_filepath$
Path to file to export top_multipleSheets
Specify 1 for multiple sheets or 0 otherwisepublic void exportToXLS(BBjNumber p_onClient, BBjString p_filepath$, BBJasperXLSExporter p_bbjasperXLSExporter!)
exportToXLS Exports the report in XLS file format
p_onClient
Specify TRUE for client or FALSE for the serverp_filepath$
Path to file to export top_bbjasperXLSExporter!
BBJasperXLSExporter object which specifies XLS export options 13.0
public void exportToXLS(BBjNumber p_onClient, BBjString p_filepath$, BBjNumber p_multipleSheets, BBJasperXLSExporter p_bbjasperXLSExporter!)
exportToXLS Exports the report in XLS file format
p_onClient
Specify TRUE for client or FALSE for the serverp_filepath$
Path to file to export top_multipleSheets
Specify 1 for multiple sheets or 0 otherwisep_bbjasperXLSExporter!
BBJasperXLSExporter object which specifies export options 13.0
public void exportToXLSX(BBjNumber p_onClient, BBjString p_filepath$)
exportToXLSX Exports the report in XLSX file format
p_onClient
Specify TRUE for client or FALSE for the serverp_filepath$
Path to file to export to 15.0
public void exportToXLSX(BBjNumber p_onClient, BBjString p_filepath$, BBJasperXLSXExporter p_bbjasperXLSXExporter!)
exportToXLSX Exports the report in XLSX file format
p_onClient
Specify TRUE for client or FALSE for the serverp_filepath$
Path to file to export top_bbjasperXLSXExporter!
BBJasperXLSXExporter object which specifies export options 15.0
public void exportToXML(BBjNumber p_onClient, BBjString p_filepath$, BBjNumber p_isEmbeddingImages)
exportToXML Exports the report in XML file format
p_onClient
Specify TRUE for client or FALSE for the serverp_filepath$
Path to file to export top_isEmbeddingImages
Specify 1 to embed image or 0 otherwisepublic void exportToXML(BBjNumber p_onClient, BBjString p_filepath$, BBjNumber p_isEmbeddingImages, BBJasperXMLExporter p_bbjasperXMLExporter!)
exportToXML Exports the report in XML file format
p_onClient
Specify TRUE for client or FALSE for the serverp_filepath$
Path to file to export top_isEmbeddingImages
Specify TRUE to embed image or FALSE otherwisep_bbjasperXMLExporter!
BBJasperXMLExporter object which specifies export options 13.0
public BBjNumber fill()
fill Fills the report with data
public BBjNumber fill(BBjNumber p_showProgress)
fill Fills the report with data
p_showProgress
Specify 1 to show a progress window, otherwise 0public net.sf.jasperreports.engine.JasperPrint@ getClientJasperPrint()
getClientJasperPrint Creates (if necessary) and returns the client JasperPrint object
public BBjString getConnectString()
getConnectString Returns the JDBC connect string
public BBjString getDefaultFilePrefix()
getDefaultFilePrefix returns the default file prefix for temporary files like email attachements
public net.sf.jasperreports.engine.JasperPrint getJasperPrint()
getJasperPrint Returns the JasperPrint object
public net.sf.jasperreports.engine.JasperReport getJasperReport()
getJasperReport Returns the JasperReport object
public BBjNumber getNumPages()
Returns the number of pages in the report
public Object getParam(BBjString p_key$)
getParam Returns an individual parameter
p_key$
Report parameter keypublic HashMap getParams()
getParams Returns all report parameters
public BBjString getReportDir()
getReportDir Returns the report directory
public BBjString getReportFile()
getReportFile Returns the report file
public BBjNumber print(BBjNumber p_onClient, BBjNumber p_dialog)
print Prints the report
p_onClient
Specify TRUE for client or FALSE for the serverShow
progress, specify TRUE to show a print dialog, otherwise FALSEpublic BBjNumber print(BBjNumber p_onClient, BBjNumber p_dialog, BBJasperPrintServiceExporter p_bbjasperPrintServiceExporter!)
print Prints the report
p_onClient
Specify TRUE for client or FALSE for the serverShow
progress, specify TRUE to show a print dialog, otherwise FALSEp_bbjasperPrintServiceExporter!
BBJasperPrintExporter object which specifies print options 13.0
public void putParam(BBjString p_key$, Object p_value!)
putParam Sets an individual report parameter
p_key$
Report pareameter keyp_value!
Report pareameter valuepublic void putParams(HashMap p_hashMap!)
putParams Sets report parameters
p_hashMap!
Report parameterspublic static Class registerJDBCDriver(BBjString p_jdbcDriverClass$)
registerJDBCDriver Registers the passed JDBC driver class
p_jdbcDriverClass$
Name of the JDBC driver class to registerpublic void removeParam(BBjString p_key$)
removeParam Removes an individual report parameter
p_key$
Key of report parameter to removepublic void removeParams()
removeParams Removes all report parameters
public void setJasperReport(net.sf.jasperreports.engine.JasperReport p_report!)
setJasperReport Sets the working JasperReport object
p_report!
A JasperReport objectpublic void setLocale(Locale p_locale!)
setLocale Sets the report locale parameter given a Java Locale object
p_locale!
Specifies the Locale object to use for the report java.util.Locale
public void setLocale(BBjString p_localeString$)
setLocale Sets the report locale parameter given a string
p_localeString$
Specifies the locale as a stringpublic void setMaxPages(BBjNumber p_maxPages)
setMaxPages Sets the max number of report pages
p_maxPages
Specifies the number of max pages 13.0
public void setupVirtualization()
setupVirtualization
Sets virtualization on.
Virtualization can be used to avoid an out of memory condition when filling a report with a
very large amount of data. Virtualization will offload this data to temporary files.
Using virutalization makes the generation of the report a bit slower but it will avoid
out of memory conditions.
The method cleanupVirtualization should be called when a report that uses virtualization
is no longer needed. This will remove the temporary files that were created during
the virtualization process. If the leanupVirtualization method is not called, these
temporary files will be removed when BBjServices is stopped.
The VIRTUALIZATION_THRESHOLD_SIZE, which by default is 300, specifies the number of pages
of the filled report created in memory before virutalization will begin.
The "bbjasper" directory under the directory that is specified by Java System property
"java.io.tmpdir" will be used to store virtualized files.
19.00
public void setupVirtualization(BBjNumber p_thresholdSize)
setupVirtualization
Sets when virtualization will occur.
Virtualization can be used to avoid an out of memory condition when filling a report with a
very large amount of data. Virtualization will offload this data to temporary files.
Using virutalization makes the generation of the report a bit slower but it will avoid
out of memory conditions.
The method cleanupVirtualization should be called when a report that uses virtualization
is no longer needed. This will remove the temporary files that were created during
the virtualization process. If the leanupVirtualization method is not called, these
temporary files will be removed when BBjServices is stopped.
The "bbjasper" directory under the directory that is specified by Java System property
"java.io.tmpdir" will be used to store virtualized files.
p_thresholdSize
Specifies the number of pages of the filled report created in memory before virutalization will begin. If this number is less than 0 no virtualization will occur. 19.00
public void setupVirtualization(BBjNumber p_thresholdSize, BBjString p_virtualizationDirectory$)
setupVirtualization
Sets when virtualization will occur and where the temporary files will be created.
Virtualization can be used to avoid an out of memory condition when filling a report with a
very large amount of data. Virtualization will offload this data to temporary files.
Using virutalization makes the generation of the report a bit slower but it will avoid
out of memory conditions.
The method cleanupVirtualization should be called when a report that uses virtualization
is no longer needed. This will remove the temporary files that were created during
the virtualization process. If the leanupVirtualization method is not called, these
temporary files will be removed when BBjServices is stopped.
p_thresholdSize
Specifies the number pages of the filled report created in memory before virutalization will begin. If this number is less than 0 no virtualization will occur.p_virtualizationDirectory$
Specifies the local directory in which virtualized files will be stored. This directory and parent directories will be created if they do not exist. 19.00