Skip to Content
0
Former Member
Mar 25, 2010 at 09:20 PM

Unexpected error determining relative path---- Error code:-2147217395 Error

68 Views

I am trying to send a report directly to print using an EJB deployed in an ear. However, I am unable to determine the relative path configuration. The CRConfig.xml is in the root of the ejb.jar. I can access the report using an absolute path in the file directory (e.g. c:\reports\myreport.rpt). However, I would rather deploy the rpt with the ear.

The ear has the following structure

\

--\META-INF\lib\Crystal jars

-- ejb.jar

<<CRConfig.xml >>

<reportlocation>../..</reportlocation>

<<EJB Bean.>>

ReportClientDocument reportDoc = new ReportClientDocument();

reportDoc.open("myreport.rpt", 0);

Any ideas? Is this possible?

Thanks in advance.