on 10-20-2006 7:39 AM
I am trying to integrate crystal reports with a struts application. I can get the CrystalReportViewer to display a crystal report using the processHTTPRequest method. The problem is that once the page is displayed if I click any of the buttons such as the "Export" or the "Print" buttons the javascript function "CrystalViewerCrystalEvent" function submits the form to the .jsp page. How can I get it to submit the form to a Struts action instead of the jsp? Or more to the point, how can I get the CrystalViewer to function properly in a Struts application?
You can set the jsp form's action attribute to your corresponding StructACtion class using javascript. This will solve the problem.
I too have a problem while exporting the reason because i have Struts-TILES integrated in the JSP i use to show the crystal report. Any body know how to reolve it.
when i click on export i get the dialog to choose the type of export wheni select it and try to export i get a grey bar with just ERROR . its not showing what is the exacty error??
Regards,
Prem
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I will answer my own question in case someone else runs into this problem. IÂ was able to work around the problem by setting the PageViewer URI property:Â Â
 crystalReportPageViewer.setURI("myAction.do");
 You need to set the property before calling the processHttpRequest method.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.