open crystal report exception.
I tried to open the crystal rpt file as the following:-
import com.crystaldecisions.reports.sdk.*;
ReportClientDocument reportClientDoc = new ReportClientDocument();
reportClientDoc.open("c:\\report.rpt", 0);
and found the below exception even though the report is in "c:\\".
com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Unexpected error determining relative path- Error code:-2147467259 Error code name:failedcom.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Unexpected error determining relative path- Error code:-2147467259 Error code name:failed
at com.crystaldecisions.reports.reportengineinterface.a.a.b.a(Unknown Source)
at com.crystaldecisions.reports.sdk.ReportClientDocument.open(Unknown Source)
at JRCChangeDatabaseConnection.JRCChangeDatabaseConnection.launchApplication(JRCChangeDatabaseConnection.java:48)
at JRCChangeDatabaseConnection.JRCChangeDatabaseConnection$1.run(JRCChangeDatabaseConnection.java:165)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Anyone, please help.
Thanks,
Tina

