Hi,
I want to open a .rpt which is local on my drive using java. The BO server is on another machine. We have crystal enterprise 2008 edition and i have all the jars. I tried these lines of code:
The problem is, when i run this code, it says specify a report app server. And when i specify the ReportAppServer, it gives a "unable to connect" exception. Now i don't want that. I have the rpt file locally with me and i would like to open it without going to RAS server. Please help. Is there any other class which does this job?
I want to open a .rpt which is local on my drive using java. The BO server is on another machine. We have crystal enterprise 2008 edition and i have all the jars. I tried these lines of code:
Code:
import com.crystaldecisions.sdk.occa.report.application.ReportClientDocument;
import com.crystaldecisions.sdk.occa.report.lib.ReportSDKException;
ReportClientDocument rcd = new ReportClientDocument();
try {
//rcd.setReportAppServer("DWBIXXI4");
rcd.open("rassdk://C:/MyReport.rpt", 0);
} catch (ReportSDKException e) {
e.printStackTrace();
}
The problem is, when i run this code, it says specify a report app server. And when i specify the ReportAppServer, it gives a "unable to connect" exception. Now i don't want that. I have the rpt file locally with me and i would like to open it without going to RAS server. Please help. Is there any other class which does this job?