Skip to Content
author's profile photo Former Member
Former Member

Javascript Popup Error (CrystalViewerbobjInit)

<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 &#39;addOnloadFunction&#39; function in the code. How do I get rid of it? </p><p> I appreciate your help.</p><p>Thanks </p><p>PK </p>

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Oct 17, 2006 at 06:17 AM

    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
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.