Page tree
Skip to end of metadata
Go to start of metadata

Crystal Reports Java SDK Samples

#General
#Viewing
#Database
#Exporting/Printing
#Parameters
#Report Modification

General

CRJava_Sample_Collection
This is a set of samples which include the following:

Designer
Java_Designer_CRJ12_Branding_Wizard - how to implement a Wizard for Crystal Report creation
Java_Designer_CRJ12_Dnd_Pictures - how to implement Dnd for images into the Crystal Reports Java Designer

RCAPI
change_db_location - change datasource location
change_stored_proc_location - change stored procedure location
rcapi_add_border - add a border to a field object
rcapi_add_box - add a box
rcapi_add_command_table - add a command table
rcapi_add_db_field - add a database field
rcapi_add_db_table - add a database table
rcapi_add_db_table_links - add database table links
rcapi_add_formula_field - add a formula field
rcapi_add_group - add a group
rcapi_add_image_from_file - add an image
rcapi_add_line - add a line
rcapi_add_parameter - add a parameter
rcapi_add_record_sort - add a sort
rcapi_add_result_field - add a result field
rcapi_add_resultset_datasource - add a datasource from a resultset
rcapi_add_section - add a section
rcapi_add_special_field - add special field such as print date
rcapi_add_stored_proc - add a stored procedure
rcapi_add_subreport - add a sub-report
rcapi_add_summary_field - add a summary field
rcapi_add_text_field - add a text field
rcapi_add_tooltip - add a tooltip to a field
rcapi_change_font_on_dbField - change the font on a field object
rcapi_change_paper_size - change the paper size
rcapi_copy_image - copy an image in a report
rcapi_create_report_from_scratch - create a report from scratch
rcapi_remove_report_object - remove an object from a report

Viewing / Exporting
Java_CRJ12_Web_Export_Excel_DataOnly - export to excel data only format
Java_CRJ12_Web_Export_PDF - export to pdf
Java_CRJ12_Web_POJO_DataSource - push POJO to report and view
Java_CRJ12_Web_Print_Server - print report server side
Java_CRJ12_Web_ResultSet_DataSource - push resultset to report and view
Java_CRJ12_Web_Set_DB_Logon - set database logon and view report
Java_CRJ12_Web_Set_Parameters - set parameters and view report
Java_CRJ12_Web_View - view report

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

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

Viewing

CRJava_View_Report
This Java Server Pages (JSP) sample demonstrates how to view a Crystal Report using the Crystal Reports Java SDK

Database

CRJava_modify_stored_proc_location
This Java Server Pages (JSP) sample demonstrates how to change the database and server of a report that uses a stored procedure

CRJava_modify_db_location
This sample shows how to change the database location for a report using the replaceConnection method

CRJava_Set_DB_Logon
This Java Server Pages (JSP) sample demonstrates how to set Crystal Report database credentials and export to PDF

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

CRJava_POJO_DataSource
This Java Server Pages (JSP) sample demonstrates how to inject a POJO collection into a Crystal Report

Exporting/Printing

Java_CRJ12_Web_Export_Excel
This Java Server Pages (JSP) sample demonstrates how to export to the MS Excel format

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

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

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

Parameters

CRJava_Set_Parameters
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

Report Modification

CRJava_modify_paper_size
This Java Server Pages (JSP) sample shows how to change the paper size for a report

CRJava_remove_report_object
This sample shows how to find and remove a report object from a report using the Report Creation API (RCAPI)

CRJava_create_report_from_scratch
This sample shows how to create a report from scratch using the Report Creation API (RCAPI)

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

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

CRJava_add_tooltip
This sample shows how to add a tooltip to a field on a report using the Report Creation API (RCAPI)

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

CRJava_add_Summary_Field
This sample shows how to add a summary field to a report using the Report Creation API (RCAPI)

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

CRJava_add_Stored_Proc
This sample shows how to add a stored procedure as the datasource to a report using the Report Creation API (RCAPI)

CRJava_add_command_table
This sample shows how to add a command table to the report using the Report Creation API (RCAPI)

CRJava_add_DB_Table_Links
This sample shows how to add a database table link to the report using the Report Creation API (RCAPI)

CRJava_add_DB_Table
This sample shows how to add a database table to the report using the Report Creation API (RCAPI)

CRJava_add_DB_Field
This sample shows how to add a database field to the report using the Report Creation API (RCAPI)

CRJava_add_Special_Field
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)

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

CRJava_add_Resultset_Datasource
This sample shows how to add a resultset as the datasource to a report using the Report Creation API (RCAPI)

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

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

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

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

CRJava_add_Image_From_File
This sample shows how to add an image from a file to a report using the Report Creation API (RCAPI)

CRJava_add_Group
This sample shows how to add a group to a report using the Report Creation API (RCAPI)

CRJava_add_Formula_Field
This sample shows how to add a formula field to a report using the Report Creation API (RCAPI)

CRJava_add_Box
This sample shows how to add a box to a field object using the Report Creation API (RCAPI)

CRJava_add_Border
This sample shows how to add a border to a field object using the Report Creation API (RCAPI)

  • No labels