cancel
Showing results for 
Search instead for 
Did you mean: 

RAS problem

Former Member
0 Kudos

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 '<crystaldecisions.reports.reportengineinterface> - 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

Accepted Solutions (1)

Accepted Solutions (1)

ted_ueda
Employee
Employee
0 Kudos

Try removing all the old jars, then adding the new ones.

Sincerely,

Ted Ueda

Former Member
0 Kudos

I had removed all needed core library I used for report but it's still error.

ted_ueda
Employee
Employee
0 Kudos

Remove all jars. Add new ones.

Sincerely,

Ted Ueda

Former Member
0 Kudos

once the report client document is created, locale cannot be set into it.

while opening the document, use the construtor which has locale.

JM

Answers (0)