on 08-09-2008 4:29 PM
Hi,
I was trying to run some code samples but I keep getting this error. I don't know what to do without JPEReportSourceFactory, nothing works. Any idea?
Error:
com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException: There is no server specified.---- Error code:-2147217390 Error code name:serverNotFound
Code:
ReportClientDocument reportClientDoc = new ReportClientDocument();
reportClientDoc.open("list.rpt", 0);
Object reportSource = reportClientDoc.getReportSource();
CrystalReportViewer viewer=new CrystalReportViewer();
viewer.setParameterFields(fields);
viewer.setOwnPage(true);
viewer.setReportSource(reportSource);
viewer.setEnableParameterPrompt(false);
viewer.setEnableLogonPrompt(false);
viewer.setBestFitPage(true);
viewer.setHasLogo(false);
viewer.setDisplayGroupTree(false);
viewer.setPrintMode(CrPrintMode.PDF);
viewer.processHttpRequest(request, response, getServletConfig().getServletContext(), response.getWriter());
It's likely you're using the incorrect ReportClientDocument for the Java Reporting Component.
The full name for the Java Reporting Component is:
com.crystaldecisions.reports.sdk.ReportClientDocument
I'm assuming you're using the ReportClientDocument that comes with the Report Application Server (RAS) SDK:
com.crystaldecisions.sdk.occa.report.application.ReportClientDocument
The RAS SDK expects a RAS server to connect with.
Sincerely,
Ted Ueda
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Paul,
It looks like you are using unmanaged RAS and after you instantiate ReportClientDocument you need to set the RAS server that will be used as follows:
reportClientDoc.setReportAppServer("<RAS server name>");
RAS server name could be localhost or 127.0.0.0 or which ever RAS server you want to connect to.
Make sure that it is running and you have concurrent licenses.
Thanks
Aasavari
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.