<p>Hi,</p><p>I used Crystal Report with Eclipse. I have Crystal report file. I have JSP file which load Crystal Report file using ReportClientDocument and CrystalReportViewer method. I deploy my project to Tomcat 5.0.28. When I run it in IE, it display a javascript error messages: "A Runtime Error has occured. Do you wish to Debug? Line: 241 Error: Object expected". I noticed in view code in IE within body:- </p><p> <script type="text/javascript" language="JavaScript"><br /><!
<br />addOnloadFunction(CrystalViewerbobjInit);<br />//
><br /></script> </p><p>and, I could not find 'addOnloadFunction' function in the code. How do I get rid of it? </p><p> I appreciate your help.</p><p>Thanks </p><p>PK </p>
This function is a Java Script function and should be found in a Java Script file in a folder called CrystalReportViewers inside of your web application. When you started this project did you start it as a "Dynamic Crystal Report Web Project". This would have included the CrystalReportViewers folder for you. Usually when you add a report to an existing web project the Crystal Report Facets should be added to the project. Maybe this didn't work for some reason.
Try starting again and see if you get a CrystalReportViewers directory in your project.
Rob Horne
Rob's blog - http://diamond.businessobjects.com/blog/10>
Add a comment