SAP Knowledge Base Article - Public

1531003 - Error: bobj undefined - javascript error


  • While running a custom .NET application from Visual Studio during development, following error message is seen when viewing a Crystal report:
       'bobj undefined'
  • Debugging the error, points to the following line of code in the web page's source, where the viewer control is placed.
    <script src="../aspnet_client/system_web/3_5/crystalreportviewers12/js/crviewer/crv.js" type="text/javascript"></script>
  • This code is appended by the viewer control when the Crystal Report Viewer is dropped on to the web form.


  • Visual Studio 2008
  • Crystal Reports 2008 SP2.
  • Web-application.


This error occurs in development machine because the .NET Framework could not find the files needed by Crystal Report Viewer at the specified location in the windows folder.


Copy the CrystalReportViewers 12 folder from
"C:\Program Files\Business Objects\Common\4.0\"

and paste it to


crv.js, dot net, .net, vs, , KBA , BI-DEV-NET , BI Software Development Kits (SDKs) - .NET or Other , Problem


Crystal Reports 2008 V1