Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

RAS API and DatabaseController 's setDataSource to use POJO collection

Is there a newer/different version of the Crystal Reports Java SDK than 2008 V3 ? I want to pass in a collection and export a PDF report at runtime (I'm already able to produce documents with no data).

The jar and api I have doesn't match with usage in sample code.

Specifically, one of the sample JSP's (java_crj12_web_pojo_datasource.jsp which came in the CRJava_POJO_DataSource zip on [the samples page|]) uses DatabaseController like so:

        .setDataSource(pojoCollection, Person.class, "Person", "Person");

and yet the jar I have (rasapp.jar) does not have those parameters as a possible option in DatabaseController class. (I can setDataSource() with a ResultSet, IDataSet, IXMLDataSet, or just Object, but no collection+type combo. (but at least the jar I have matches the javadoc api that came in the dev guide).

What am I doing wrong? Or do I just have an old version? Or am I missing some piece? Suggestions?

I have Crystal Reports Server Embedded 2008 V3 (CRSE 2008 Service Pack 3 Full Build)

The running "Report Application Server 12" version is as shown in the Central Configuration Manager


Not what you were looking for? View more on this topic or Ask a question