Hi all,
I can run the crystal report with jsp webapp in windows.
However, when I move the webapp to linux server. It fail.
As I know the following line does not point to local linux server but point at RAS in W2K: clientDoc.open("rassdk://" + path + reportName, OpenReportOptions._openAsReadOnly);
Could somebody point me the way?
Here are the details:
============================================================
path + reportName = C:\Program Files\Crystal Decisions\Report Application Server 9\Reports\attendance\RPT_001.rpt
com.crystaldecisions.sdk.occa.report.lib.ReportSDKClientDocException: Unable to open the document because the given file path is not valid.---- Error code:-2147215358 Error code name:invalidFilePath
An error has occurred in setting the Report Server Control's Report Source.
Check to make sure that the report does exist in the directory specified and that it is also spelled correctly.
com.crystaldecisions.sdk.occa.report.lib.ReportSDKClientDocException: The document has not been opened.---- Error code:-2147215349 Error code name:docNotReady
Unknow Error.
============================================================
/************************************************************************
* This method creates the ReportClientDocument and opens the specified report.
* @params clientDoc - The ReportClientDocument object
* reportName - The name of the report as String
* request - Request object
* out - JspWriter object
************************************************************************/
public void setReportClientDocument(ReportClientDocument clientDoc, String reportName, HttpServletRequest request, JspWriter out) throws Exception {
String path = "C:\\Program Files\\Crystal Decisions\\Report Application Server 9\\Reports\\attendance\\";
try {
// Set the Report Application Server for the ReportClientDocument object
clientDoc.setReportAppServer(Settings.get("app.rpt.server");
} catch(ReportSDKException e) {
Debug.println("An error has occurred setting the ReportClientDocument's ReportAppServer.<BR>" + e.toString());
}
try {
clientDoc.open("rassdk://" + path + reportName, OpenReportOptions._openAsReadOnly);
} catch(ReportSDKException e) {
Debug.println("path + reportName = "+ path + reportName);
Debug.println(e.toString());
}
}
I can run the crystal report with jsp webapp in windows.
However, when I move the webapp to linux server. It fail.
As I know the following line does not point to local linux server but point at RAS in W2K: clientDoc.open("rassdk://" + path + reportName, OpenReportOptions._openAsReadOnly);
Could somebody point me the way?
Here are the details:
============================================================
path + reportName = C:\Program Files\Crystal Decisions\Report Application Server 9\Reports\attendance\RPT_001.rpt
com.crystaldecisions.sdk.occa.report.lib.ReportSDKClientDocException: Unable to open the document because the given file path is not valid.---- Error code:-2147215358 Error code name:invalidFilePath
An error has occurred in setting the Report Server Control's Report Source.
Check to make sure that the report does exist in the directory specified and that it is also spelled correctly.
com.crystaldecisions.sdk.occa.report.lib.ReportSDKClientDocException: The document has not been opened.---- Error code:-2147215349 Error code name:docNotReady
Unknow Error.
============================================================
/************************************************************************
* This method creates the ReportClientDocument and opens the specified report.
* @params clientDoc - The ReportClientDocument object
* reportName - The name of the report as String
* request - Request object
* out - JspWriter object
************************************************************************/
public void setReportClientDocument(ReportClientDocument clientDoc, String reportName, HttpServletRequest request, JspWriter out) throws Exception {
String path = "C:\\Program Files\\Crystal Decisions\\Report Application Server 9\\Reports\\attendance\\";
try {
// Set the Report Application Server for the ReportClientDocument object
clientDoc.setReportAppServer(Settings.get("app.rpt.server");
} catch(ReportSDKException e) {
Debug.println("An error has occurred setting the ReportClientDocument's ReportAppServer.<BR>" + e.toString());
}
try {
clientDoc.open("rassdk://" + path + reportName, OpenReportOptions._openAsReadOnly);
} catch(ReportSDKException e) {
Debug.println("path + reportName = "+ path + reportName);
Debug.println(e.toString());
}
}