public class BBJasperReport extends Object
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
Constant value that represents a client object error
|
static BBjNumber |
CONNECTION_ERROR
Constant value that represents a connection error
|
static BBjNumber |
FILL_CANCELED
Constant value that represents that the fill operation was canceled
|
static BBjNumber |
FILL_ERROR
Constant value that represents a fill error
|
static BBjNumber |
REPORT_ERROR
Constant value that represents a error return code
|
static BBjNumber |
SUCCESS
Constant value that represents a successful return code
|
static BBjNumber |
VIRTUALIZATION_THRESHOLD_SIZE
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$)
Constructs a BBJasperReport given a report file and connect string
|
BBJasperReport(BBjString p_reportFile$,
BBjString p_connectString$,
HashMap p_params!)
Constructs a BBJasperReport given a report file, connect string, and report parameters
|
BBJasperReport(BBjString p_reportFile$,
BBjString p_connectString$,
HashMap p_params!,
BBjString p_locale$)
Constructs a BBJasperReport given a report file, connect string, report parameters, and locale
|
BBJasperReport(BBjString p_reportFile$,
Collection p_collection!)
Constructs a BBJasperReport given a report file, result set, and report parameters
|
BBJasperReport(BBjString p_reportFile$,
Collection p_collection!,
HashMap p_params!)
Constructs a BBJasperReport given a report file, result set, and report parameters
|
BBJasperReport(BBjString p_reportFile$,
Collection p_collection!,
HashMap p_params!,
BBjString p_locale$)
Constructs a BBJasperReport given a report file, result set, report parameters, and locale
|
BBJasperReport(BBjString p_reportFile$,
JRDataSource p_jrdatasource!)
Constructs a BBJasperReport given a report file, JRDataSource, and report parameters
|
BBJasperReport(BBjString p_reportFile$,
JRDataSource p_jrdatasource!,
HashMap p_params!)
Constructs a BBJasperReport given a report file, JRDataSource, and report parameters
|
BBJasperReport(BBjString p_reportFile$,
JRDataSource p_jrdatasource!,
HashMap p_params!,
BBjString p_locale$)
Constructs a BBJasperReport given a report file, JRDataSource, report parameters, and locale
|
BBJasperReport(BBjString p_reportFile$,
ResultSet p_rs!)
Constructs a BBJasperReport given a report file and result set
|
BBJasperReport(BBjString p_reportFile$,
ResultSet p_rs!,
HashMap p_params!)
Constructs a BBJasperReport given a report file, result set, and report parameters
|
BBJasperReport(BBjString p_reportFile$,
ResultSet p_rs!,
HashMap p_params!,
BBjString p_locale$)
Constructs a BBJasperReport given a report file, result set, report parameters, and locale
|
Modifier and Type | Method and Description |
---|---|
void |
appendReport(BBJasperReport p_report!)
Appends the passed BBJasperReport to the current report
|
void |
cleanupVirtualization()
Removes temporary files that are created when virtualization is used.
|
BBJasperReport |
clone()
Creates and returns a copy of the current BBJasperReport object
|
BBJasperReport |
createSubReport(BBjString p_reportFile$,
HashMap p_params!)
Creates a sub report, which inherits parameters from this report
|
void |
destroy()
Destroys the BBJasperReport object
|
void |
email(Email p_email!)
Emails the report as an attachment
|
void |
exportToCSV(BBjNumber p_onClient,
BBjString p_filepath$)
Exports the report in CSV file format
|
void |
exportToCSV(BBjNumber p_onClient,
BBjString p_filepath$,
BBJasperCSVExporter p_bbjasperCSVExporter!)
Exports the report in CSV file format
|
void |
exportToDOCX(BBjNumber p_onClient,
BBjString p_filepath$)
Exports the report in DOCX file format
|
void |
exportToDOCX(BBjNumber p_onClient,
BBjString p_filepath$,
BBJasperDOCXExporter p_bbjasperDOCXExporter!)
Exports the report in DOCX file format
|
void |
exportToHTML(BBjNumber p_onClient,
BBjString p_filepath$)
Exports the report in HTML file format
|
void |
exportToHTML(BBjNumber p_onClient,
BBjString p_filepath$,
BBJasperHTMLExporter p_bbjasperHTMLExporter!)
Exports the report in HTML file format
|
void |
exportToJRPRINT(BBjNumber p_onClient,
BBjString p_filepath$)
Exports the report in JRPRNT file format
|
void |
exportToODS(BBjNumber p_onClient,
BBjString p_filepath$)
Exports the report in ODS file format
|
void |
exportToODS(BBjNumber p_onClient,
BBjString p_filepath$,
BBJasperODSExporter p_bbjasperODSExporter!)
Exports the report in ODS file format
|
void |
exportToODT(BBjNumber p_onClient,
BBjString p_filepath$)
Exports the report in ODT file format
|
void |
exportToODT(BBjNumber p_onClient,
BBjString p_filepath$,
BBJasperODTExporter p_bbjasperODTExporter!)
Exports the report in ODT file format
|
void |
exportToPDF(BBjNumber p_onClient,
BBjString p_filepath$)
Exports the report in PDF file format
|
void |
exportToPDF(BBjNumber p_onClient,
BBjString p_filepath$,
BBJasperPDFExporter p_bbjasperPDFExporter!)
Exports the report in PDF file format
|
void |
exportToPPTX(BBjNumber p_onClient,
BBjString p_filepath$)
Exports the report in PPTX file format
|
void |
exportToPPTX(BBjNumber p_onClient,
BBjString p_filepath$,
BBJasperPPTXExporter p_bbjasperPPTXExporter!)
Exports the report in PPTX file format
|
void |
exportToRTF(BBjNumber p_onClient,
BBjString p_filepath$)
Exports the report in RTF file format
|
void |
exportToRTF(BBjNumber p_onClient,
BBjString p_filepath$,
BBJasperRTFExporter p_bbjasperRTFExporter!)
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)
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!)
Exports the report in TXT file format
|
void |
exportToXLS(BBjNumber p_onClient,
BBjString p_filepath$)
Exports the report in XLS file format
|
void |
exportToXLS(BBjNumber p_onClient,
BBjString p_filepath$,
BBJasperXLSExporter p_bbjasperXLSExporter!)
Exports the report in XLS file format
|
void |
exportToXLS(BBjNumber p_onClient,
BBjString p_filepath$,
BBjNumber p_multipleSheets)
Exports the report in XLS file format
|
void |
exportToXLS(BBjNumber p_onClient,
BBjString p_filepath$,
BBjNumber p_multipleSheets,
BBJasperXLSExporter p_bbjasperXLSExporter!)
Exports the report in XLS file format
|
void |
exportToXLSX(BBjNumber p_onClient,
BBjString p_filepath$)
Exports the report in XLSX file format
|
void |
exportToXLSX(BBjNumber p_onClient,
BBjString p_filepath$,
BBJasperXLSXExporter p_bbjasperXLSXExporter!)
Exports the report in XLSX file format
|
void |
exportToXML(BBjNumber p_onClient,
BBjString p_filepath$,
BBjNumber p_isEmbeddingImages)
Exports the report in XML file format
|
void |
exportToXML(BBjNumber p_onClient,
BBjString p_filepath$,
BBjNumber p_isEmbeddingImages,
BBJasperXMLExporter p_bbjasperXMLExporter!)
Exports the report in XML file format
|
BBjNumber |
fill()
Fills the report with data
|
BBjNumber |
fill(BBjNumber p_showProgress)
Fills the report with data
|
JasperPrint@ |
getClientJasperPrint()
Creates (if necessary) and returns the client JasperPrint object
|
BBjString |
getConnectString()
Returns the JDBC connect string
|
BBjString |
getDefaultFilePrefix()
returns the default file prefix for temporary files like email attachements
|
JasperPrint |
getJasperPrint()
Returns the JasperPrint object
|
JasperReport |
getJasperReport()
Returns the JasperReport object
|
Object |
getParam(BBjString p_key$)
Returns an individual parameter
|
HashMap |
getParams()
Returns all report parameters
|
BBjString |
getReportDir()
Returns the report directory
|
BBjString |
getReportFile()
Returns the report file
|
BBjNumber |
print(BBjNumber p_onClient,
BBjNumber p_dialog)
Prints the report
|
BBjNumber |
print(BBjNumber p_onClient,
BBjNumber p_dialog,
BBJasperPrintServiceExporter p_bbjasperPrintServiceExporter!)
Prints the report
|
void |
putParam(BBjString p_key$,
Object p_value!)
Sets an individual report parameter
|
void |
putParams(HashMap p_hashMap!)
Sets report parameters
|
static Class |
registerJDBCDriver(BBjString p_jdbcDriverClass$)
Registers the passed JDBC driver class
|
void |
removeParam(BBjString p_key$)
Removes an individual report parameter
|
void |
removeParams()
Removes all report parameters
|
void |
setJasperReport(JasperReport p_report!)
Sets the working JasperReport object
|
void |
setLocale(BBjString p_localeString$)
Sets the report locale parameter given a string
|
void |
setLocale(Locale p_locale!)
Sets the report locale parameter given a Java Locale object
|
void |
setMaxPages(BBjNumber p_maxPages)
Sets the max number of report pages
|
void |
setupVirtualization()
Sets virtualization on.
|
void |
setupVirtualization(BBjNumber p_thresholdSize)
Sets when virtualization will occur.
|
void |
setupVirtualization(BBjNumber p_thresholdSize,
BBjString p_virtualizationDirectory$)
Sets when virtualization will occur and where the temporary files will be created.
|
public static BBjNumber SUCCESS
public static BBjNumber REPORT_ERROR
public static BBjNumber CONNECTION_ERROR
public static BBjNumber FILL_ERROR
public static BBjNumber FILL_CANCELED
public static BBjNumber CLIENT_OBJECT_ERROR
public static BBjNumber VIRTUALIZATION_THRESHOLD_SIZE
public BBJasperReport(BBjString p_reportFile$, BBjString p_connectString$)
p_reportFile$
- Jrxml or jasper report filep_connectString$
- JDBC connect stringpublic BBJasperReport(BBjString p_reportFile$, BBjString p_connectString$, HashMap p_params!)
p_reportFile$
- Jrxml or jasper report filep_connectString$
- JDBC connect stringp_params!
- Report parameterspublic BBJasperReport(BBjString p_reportFile$, BBjString p_connectString$, HashMap p_params!, BBjString p_locale$)
p_reportFile$
- Jrxml or jasper report filep_connectString$
- JDBC connect stringp_params!
- Report parametersp_locale$
- Localepublic BBJasperReport(BBjString p_reportFile$, ResultSet p_rs!)
p_reportFile$
- Jrxml or jasper report filep_rs!
- Result set contaning the data for the reportpublic BBJasperReport(BBjString p_reportFile$, ResultSet p_rs!, HashMap p_params!)
p_reportFile$
- Jrxml or jasper report filep_rs!
- Result set contaning the data for the reportp_params!
- Report parameterspublic BBJasperReport(BBjString p_reportFile$, ResultSet p_rs!, HashMap p_params!, BBjString p_locale$)
p_reportFile$
- Jrxml or jasper report filep_rs!
- Result set contaning the data for the reportp_params!
- Report parametersp_locale$
- Localepublic BBJasperReport(BBjString p_reportFile$, Collection p_collection!)
p_reportFile$
- Jrxml or jasper report filep_collection!
- Collection contaning the data for the reportpublic BBJasperReport(BBjString p_reportFile$, Collection p_collection!, HashMap p_params!)
p_reportFile$
- Jrxml or jasper report filep_collection!
- Collection contaning the data for the reportp_params!
- Report parameterspublic BBJasperReport(BBjString p_reportFile$, Collection p_collection!, HashMap p_params!, BBjString p_locale$)
p_reportFile$
- Jrxml or jasper report filep_collection!
- Collection contaning the data for the reportp_params!
- Report parametersp_locale$
- Localepublic BBJasperReport(BBjString p_reportFile$, JRDataSource p_jrdatasource!)
p_reportFile$
- Jrxml or jasper report filep_jrdatasource!
- JRDataSource contaning the data for the reportpublic BBJasperReport(BBjString p_reportFile$, JRDataSource p_jrdatasource!, HashMap p_params!)
p_reportFile$
- Jrxml or jasper report filep_jrdatasource!
- JRDataSource contaning the data for the reportp_params!
- Report parameterspublic BBJasperReport(BBjString p_reportFile$, JRDataSource p_jrdatasource!, HashMap p_params!, BBjString p_locale$)
p_reportFile$
- Jrxml or jasper report filep_jrdatasource!
- JRDataSource contaning the data for the reportp_params!
- Report parametersp_locale$
- Localepublic void setupVirtualization()
public void setupVirtualization(BBjNumber p_thresholdSize)
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.public void setupVirtualization(BBjNumber p_thresholdSize, BBjString p_virtualizationDirectory$)
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.public void cleanupVirtualization()
public BBJasperReport clone()
public void putParams(HashMap p_hashMap!)
p_hashMap!
- Report parameterspublic void putParam(BBjString p_key$, Object p_value!)
p_key$
- Report pareameter keyp_value!
- Report pareameter valuepublic void setLocale(Locale p_locale!)
p_locale!
- Specifies the Locale object to use for the reportLocale
public void setLocale(BBjString p_localeString$)
p_localeString$
- Specifies the locale as a stringpublic BBJasperReport createSubReport(BBjString p_reportFile$, HashMap p_params!)
p_reportFile$
- Specifies a jrxml or jasper report filep_params!
- Hashmap that contains report parameterspublic Object getParam(BBjString p_key$)
p_key$
- Report parameter keypublic HashMap getParams()
public BBjString getConnectString()
public void removeParams()
public void removeParam(BBjString p_key$)
p_key$
- Key of report parameter to removepublic BBjString getDefaultFilePrefix()
public BBjString getReportFile()
public BBjString getReportDir()
public JasperReport getJasperReport()
public void setJasperReport(JasperReport p_report!)
p_report!
- A JasperReport objectpublic JasperPrint getJasperPrint()
public JasperPrint@ getClientJasperPrint()
public BBjNumber fill()
public BBjNumber fill(BBjNumber p_showProgress)
p_showProgress
- Specify 1 to show a progress window, otherwise 0public void email(Email p_email!)
An error will be thrown if not successful.
p_email!
- Email object that will be used to send the report via emailpublic BBjNumber print(BBjNumber p_onClient, BBjNumber p_dialog)
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!)
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 optionspublic void exportToHTML(BBjNumber p_onClient, BBjString p_filepath$)
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!)
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 optionspublic void exportToPDF(BBjNumber p_onClient, BBjString p_filepath$)
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!)
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 optionspublic void exportToXML(BBjNumber p_onClient, BBjString p_filepath$, BBjNumber p_isEmbeddingImages)
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!)
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 optionspublic void exportToJRPRINT(BBjNumber p_onClient, BBjString p_filepath$)
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$)
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)
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!)
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 optionspublic void exportToXLS(BBjNumber p_onClient, BBjString p_filepath$, BBjNumber p_multipleSheets, BBJasperXLSExporter p_bbjasperXLSExporter!)
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 optionspublic void exportToXLSX(BBjNumber p_onClient, BBjString p_filepath$)
p_onClient
- Specify TRUE for client or FALSE for the serverp_filepath$
- Path to file to export topublic void exportToXLSX(BBjNumber p_onClient, BBjString p_filepath$, BBJasperXLSXExporter p_bbjasperXLSXExporter!)
p_onClient
- Specify TRUE for client or FALSE for the serverp_filepath$
- Path to file to export top_bbjasperXLSXExporter!
- BBJasperXLSXExporter object which specifies export optionspublic void exportToCSV(BBjNumber p_onClient, BBjString p_filepath$)
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!)
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 optionspublic void exportToRTF(BBjNumber p_onClient, BBjString p_filepath$)
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!)
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 optionspublic void exportToDOCX(BBjNumber p_onClient, BBjString p_filepath$)
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!)
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 optionspublic void exportToODT(BBjNumber p_onClient, BBjString p_filepath$)
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!)
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 optionspublic void exportToODS(BBjNumber p_onClient, BBjString p_filepath$)
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!)
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 optionspublic void exportToPPTX(BBjNumber p_onClient, BBjString p_filepath$)
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!)
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 optionspublic void exportToTXT(BBjNumber p_onClient, BBjString p_filepath$, BBjNumber p_pageWidth, BBjNumber p_pageHeight, BBjNumber p_charWidth, BBjNumber p_charHeight)
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!)
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 optionspublic void appendReport(BBJasperReport p_report!)
p_report!
- BBJasperReport object to appendpublic void setMaxPages(BBjNumber p_maxPages)
p_maxPages
- Specifies the number of max pagespublic void destroy()
public static Class registerJDBCDriver(BBjString p_jdbcDriverClass$)
p_jdbcDriverClass$
- Name of the JDBC driver class to register