cancel
Showing results for 
Search instead for 
Did you mean: 

Crystal Reports TagLib -Help Needed

Former Member
0 Kudos

Hi ,

I am trying to write a custom taglib to take paramaterFields as an for Crystal reports XI.

Is it possible to inherit the already available Custom tag which comes with crystal reports? I tried but i couldnt supply the parameter fields to the ServerControl Object.

Please help

thanks,

Prem

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Cliff

This error message generally has to do with the path that the Java Print Engine is looking for your report. The CRConfig.xml (should be located in your classpath) has a <reportlocation> tag that may or may not contain some information about where the JRC can find the report. If you are deploying the JRC in an EAR file, this may be why the JPE is unable to find the path to the report.

You can remove this tag from CRConfig, and place your report in the classes folder in your WEB-INF directory; or you can jar it up and put it in the lib folder in the same directory.

Alternatively, the latest version of the JRC will accept the physical path to the report.

Regards,

Merry

ted_ueda
Employee
Employee
0 Kudos

One addition to Merry's post - relative paths are relative to the location of the CrystalReportViewer.jar file.

This is problematic for some web app servers and deploying as EAR and not WAR. Not using relative paths as Merry recommends is the way to go if this is your situation.

Sincerely,

Ted Ueda

Former Member
0 Kudos

Hi ,

I am trying to write a custom taglib to take paramaterFields as an input for my crystal report

Is it possible to inherit the already available Custom tag which comes with crystal reports? I tried but i couldnt supply the parameter fields to the ServerControl Object.

Please help

thanks,

Prem

former_member203619
Contributor
0 Kudos

Unfortunately no.

Our taglibs reference internal objects and it will not work to inherit from them.

Also, we recommend not using the taglib's where possible because they really don't work well.

-


a programmer learning programming from perl is like a chemisty student learning the definition of "exothermic" with dynamite

Former Member
0 Kudos

HI penner,

thank you

Why is it not recommeded? It is working fine for me it doesnt give any error.

Also i dont want my jsp page to contain scriplets thats the reason why i wanted to go for a custom tag.I would appreciate if you could sugget me a better way to generate the report

Thanks,

Prem

former_member203619
Contributor
0 Kudos

The main reason we suggest using something other than taglib is because the taglib viewer doesn't have as many features exposed as the other viewers (jsf, etc.) I'm not sure of the specific feature list - I just know that it doesn't have as much functionality as the other viewers

-


a programmer learning programming from perl is like a chemisty student learning the definition of "exothermic" with dynamite

Former Member
0 Kudos

Hi,

I need some advise/insights on using the "crviewer" taglib... Saw the usage of this tag in the CrystalReportsSample war app, and have followed the exact steps as stated in the sample app's readme... when I tried to view the report within my ear app, I got the following exception:

com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Unexpected error determining relative path---- Error code:-2147467259 Error code name:failed

at com.crystaldecisions.reports.reportengineinterface.JPEReportSource.a(Unknown Source)

at com.crystaldecisions.reports.reportengineinterface.JPEReportSourceFactory.createReportSource(Unknown Source)

at com.crystaldecisions.report.web.a.a.M(Unknown Source)

at com.crystaldecisions.report.web.viewer.ReportServerControl.getReportSource(Unknown Source)

at com.crystaldecisions.report.web.viewer.taglib.ReportServerControlTag.int(Unknown Source)

at com.crystaldecisions.report.web.viewer.taglib.ReportServerControlTag.doEndTag(Unknown Source)

at jsp_servlet._view.__viewreport._jspService(__viewreport.java:208)

at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)

at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1077)

at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:465)

at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:526)

at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:348)

at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:7047)

at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)

at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3902)

at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2773)

at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)

at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)

I tried both deploying my app using exploded package and .ear archive, neither ways works.

Then I tried deploying only the .war portion of my app, surprisingly, this got the "crviewer" taglib working and was able to display the report.... no other setting was changed between deployment of the .ear or .war

Can anyone advise on solutions for the above exception, as the message does not says much.

Thanks!

Edited by: Cliff Teh on Jun 10, 2008 4:38 AM

ted_ueda
Employee
Employee
0 Kudos

Hello Premnath,

The warning is for some old taglibs that still come with the Crystal Report Java SDK.

I don't recommend basing your own custom taglibs against it.

I do know people who do exactly what you do - create their own custom taglibs against the CrystalReportViewer viewer object.

Sincerely,

Ted Ueda