Business Objects Java Reporting Component SDK Sample Applications

All Sample Applications

Java_JRC_Desktop_Export_Report_to_disk_PDF Code Sample(ZIP 18 KB)

This desktop sample demonstrates how to export a report to a stream (server-side exporting) and then how to use the Java I/O libraries to write the exported output to the local file system.17 Apr 2009

Java_JRC_Desktop_View_Report_and_set_database_logon Code Sample(ZIP 17 KB)

This desktop JRC sample demonstrates how to set a report's database logon credentials before viewing the report.17 Apr 2009

Java_JRC_Desktop_display_connection_info Code Sample(ZIP 25 KB)

This desktop sample demonstrates how to obtain the connection information stored in two report files and compare them side by side. The sample writes all of the connection info properties to a static HTML file that can be viewed in a web browser.17 Apr 2009

Java_JRC_Desktop_modify_Database_Connection Code Sample(ZIP 11 KB)

This Desktop JRC sample demonstrates how to change the reporting database at run time.17 Apr 2009

Java_JRC_Desktop_set_pojo_datasource Code Sample(ZIP 38 KB)

This desktop JRC sample demonstrates how to push a run-time Plain Old Java Object (POJO) to a report as a Java Resultset. NOTE: The POJO API provided is a sample for converting plain old Java objects into Java Resultsets. The sample POJO API is provided "as is" and is not supported by Business Objects technical support.17 Apr 2009

Java_JRC_Export_And_Combine_PDF Code Sample(ZIP 753 KB)

This sample demonstrates how to export multiple reports to PDF and combine the PDF's. It uses the iText library to combine the PDF's. iText can be found here: http://www.lowagie.com/iText/download.html Please note that iText is not a part of the Business Objects SDK.17 Apr 2009

Java_JRC_Pass Date Range Param Code Sample(ZIP 8 KB)

This Java Web sample demonstrates how to pass a ranged date parameter to a report.17 Apr 2009

Java_JRC_Use_CrystalImageCleaner Code Sample(ZIP 17 KB)

This sample application demonstrates how to open up a report that contains saved data using the JRC 10 and use the Crystal Image Cleaner to ensure that temporary files used by the viewer are removed periodically17 Apr 2009

Java_JRC_View_Report Code Sample(ZIP 18 KB)

This sample demonstrates how to launch a report in the zero-client DHTML viewer (CrystalReportViewer).17 Apr 2009

Java_JRC_export_and_set_db_logon Code Sample(ZIP 8 KB)

This sample application demonstrates how to export a report using the ReportExportControl and logon to a reporting database using the JRC. The sample report jrc_export_with_logon.rpt uses a JDBC connection to the Pubs SQL Server database.17 Apr 2009

Java_JRC_export_and_set_parameters Code Sample(ZIP 10 KB)

This sample application demonstrates how to pass parameters to a report and log on to a secure database using the Java Reporting Component (JRC) before exporting the report to PDF.17 Apr 2009

Java_JRC_export_report_to_browser_or_disk_PDF Code Sample(ZIP 19 KB)

This sample demonstrates how to export a report to a stream (server-side exporting). The sample then demonstrates how to use the Java I/O libraries to write the exported result to the local file system or the browser.17 Apr 2009

Java_JRC_intercept_viewer_drilldown_event Code Sample(ZIP 21 KB)

This sample demonstrates how to intercept the drilldown event on the viewer in the JRC DHTML viewer17 Apr 2009

Java_JRC_modify_Database_Location_For_Stored_Proc Code Sample(ZIP 20 KB)

This sample demonstrates how to change database location for a report based off of a stored procedure.17 Apr 2009

Java_JRC_modify_command_table_with_parameter Code Sample(ZIP 3 KB)

This sample demonstrates how to change the connection properties of a command table that has parameters17 Apr 2009

Java_JRC_modify_datasource_on_oracle_JNDI Code Sample(ZIP 2 KB)

This sample demonstrates how to change the database location for a report based off of an oracle JNDI connection17 Apr 2009

Java_JRC_print_report Code Sample(ZIP 18 KB)

This sample demonstrates how to print a report directly to a printer (server-side printing).17 Apr 2009

Java_JRC_set_discrete_parameter_value Code Sample(ZIP 58 KB)

This sample application shows how to pass a discrete string parameter to a report using the Java Reporting Component (JRC).17 Apr 2009

Java_JRC_set_multi_value_parameter Code Sample(ZIP 10 KB)

This sample application demonstrates how to pass multiple values to a parameterized report using the Java Reporting Component (JRC)17 Apr 2009

Java_JRC_set_parameters_and_database_logon Code Sample(ZIP 16 KB)

This sample application demonstrates how to pass values to a parameterized report and database credentials to a secure database using the Java Reporting Component (JRC)17 Apr 2009

Java_JRC_set_resultset_datasource Code Sample(ZIP 14 KB)

This sample demonstrates how to push a runtime Java Resultset to a report as a datasource.17 Apr 2009

Java_JRC_set_sub_report_parameters_string_and_integer Code Sample(ZIP 16 KB)

This sample application demonstrates how to pass values to a parameterized report that contains a subreport using the Java Reporting Component (JRC)17 Apr 2009

Java_JRC_set_subreport_parameters_all_types Code Sample(ZIP 18 KB)

This sample application demonstrates how to pass all types of values to a parameterized report containing a subreport using the Java Reporting Component (JRC)17 Apr 2009

Java_JRC_view_report_and_set_database_logon Code Sample(ZIP 16 KB)

This sample demonstrates how to set the report's database logon credentials before viewing a report.17 Apr 2009

Java_JRC_view_report_and_set_report_parameters Code Sample(ZIP 17 KB)

This Java Web sample demonstrates how to pass parameters values to a report and then view the report (including subreports). The sample contains utility functions that demonstrate how to set parameter values for complex parameter types such as discrete range and multi-value range parameters.17 Apr 2009

Java_JRC_view_report_using_tag_library_advanced Code Sample(ZIP 9 KB)

This sample demonstrates how to display a report using the tag library as well as toggling some of the viewer options17 Apr 2009

Java_JRC_view_report_using_tag_tag_library_basic Code Sample(ZIP 9 KB)

This sample demonstrates how to display a report using the tag library17 Apr 2009

CRJava_Designer_Dnd_Pictures Code Sample(ZIP 9 KB)

This Eclipse plug-in sample illustrates how to implement a Wizard for Crystal Report creation including adding Text, Picture and Line Objects16 Apr 2009

CRJava_Export_Excel_DataOnly Code Sample(ZIP 34 KB)

This Java Server Pages (JSP) sample demonstrates how to export a Crystal Report to Excel Data Only using the Crystal Reports Java SDK.16 Apr 2009

CRJava_Export_PDF Code Sample(ZIP 65 KB)

This Java Server Pages (JSP) sample demonstrates how to export a Crystal Report to PDF using the Crystal Reports Java SDK.16 Apr 2009

CRJava_POJO_DataSource Code Sample(ZIP 12 KB)

This Java Server Pages (JSP) sample demonstrates how to inject a POJO collection into a Crystal Report16 Apr 2009

CRJava_Print_Server Code Sample(ZIP 66 KB)

This Java Server Pages (JSP) sample demonstrates how to print a Crystal Report on a server-side printer using the Crystal Reports Java SDK16 Apr 2009

CRJava_ResultSet_DataSource Code Sample(ZIP 12 KB)

This Java Server Pages (JSP) sample demonstrates how to inject a java.sql.ResultSet into a Crystal Report.16 Apr 2009

CRJava_Set_DB_Logon Code Sample(ZIP 13 KB)

This Java Server Pages (JSP) sample demonstrates how to set Crystal Report database credentials and export to PDF.16 Apr 2009

CRJava_Set_Parameters Code Sample(ZIP 20 KB)

This Java Server Pages (JSP) sample demonstrates how to set Crystal Report parameter field values and export to PDF using the Crystal Reports Java SDK.16 Apr 2009

CRJava_View_Report Code Sample(ZIP 36 KB)

This Java Server Pages (JSP) sample demonstrates how to view a Crystal Report using the Crystal Reports Java SDK.16 Apr 2009

CRJava Copy Image Code Sample(ZIP 452 KB)

This sample shows how to copy an image in a report to another location in the report using the Report Creation API (RCAPI)15 Apr 2009

CRJava add Line Code Sample(ZIP 18 KB)

This sample shows how to add a line to a report using the Report Creation API (RCAPI)15 Apr 2009

CRJava add Parameter Code Sample(ZIP 18 KB)

This sample shows how to add a parameter to a report using the Report Creation API (RCAPI)15 Apr 2009

CRJava add Record Sort Code Sample(ZIP 18 KB)

This sample shows how to add a sort to a report using the Report Creation API (RCAPI)15 Apr 2009

CRJava add Result Field Code Sample(ZIP 18 KB)

This sample shows how to add a result field to a report using the Report Creation API (RCAPI)15 Apr 2009

CRJava add Section Code Sample(ZIP 17 KB)

This sample shows how to add a section to a report using the Report Creation API (RCAPI)15 Apr 2009

CRJava add Special Field Code Sample(ZIP 18 KB)

This sample shows how to add a special field such as the print date or page n of m field to a report using the Report Creation API (RCAPI)15 Apr 2009

CRJava add Subreport Code Sample(ZIP 17 KB)

This sample shows how to add a subreport to a report using the Report Creation API (RCAPI)15 Apr 2009

CRJava add Text Field Code Sample(ZIP 18 KB)

This sample shows how to add a text field to a report using the Report Creation API (RCAPI)15 Apr 2009

CRJava_Designer_Branding_Wizard Code Sample(ZIP 23 KB)

This Eclipse plug-in sample illustrates how to implement a Wizard for Crystal Report creation including adding Text, Picture and Line Objects15 Apr 2009

CRJava_change_font_on_dbField Code Sample(18 KB)

This sample shows how to change the font for a field on a report using the Report Creation API (RCAPI)15 Apr 2009

CRJava_create_report_from_scratch Code Sample(ZIP 2 KB)

This sample shows how to create report from scratch using the Report Creation API (RCAPI)15 Apr 2009

CRJava_modify_db_location Code Sample(ZIP 18 KB)

This sample shows how to change the database location for a report using the replaceConnection method15 Apr 2009

CRJava_modify_paper_size Code Sample(ZIP 17 KB)

This sample shows how to change the paper size for a report15 Apr 2009

12