Hello,
I'm using JRC lib 11sp4 to handle report before.
Now I'm update to jrc 12 and have one problem about RAS:
com.crystaldecisions.sdk.occa.report.lib.ReportSDKClientDocException: User cannot change the Report Application Server once the document is opened or created.---- Error code:-2147215346 Error code name:changeServer
at com.crystaldecisions.sdk.occa.report.lib.ReportSDKClientDocException.throwReportSDKClientDocException(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ClientDocument.setReportAppServer(Unknown Source)
at com.crystaldecisions.reports.sdk.ReportClientDocument.open(Unknown Source)
And here is the code make the problem:
ReportClientDocument doc = new ReportClientDocument();
doc.setLocale(locale);
// open report: look for institution specific report first.
try {
doc.open(reportFile_Inst, 0);
reportFile = reportFile_Inst; // for debug output
} catch (ReportSDKException e) {
this.logger.info("previous Crystal report error ' - The report file was not found' .");
doc.open(reportFile, 0);
}
this.logger.debug(reportName + ": report file found and opened");
//set DB connection for reports
setConnectionInfo(doc.getDatabaseController(), directQueryParameters);
this.logger.debug(reportName + ": ConnectionInfos set");
Cheers,
PT