Test Menu

  • Commentary
  • Deals
  • Coupons

Dec 14, 2011

Deploying Crystal Reports for Visual Studio 2010

If you're writing an application that uses Crystal Reports for Visual Studio 2010, the steps for deploying the application and getting the report to work are not obvious.  The following steps helped me with deployment.
  1. Download and install the Crystal Reports for Visual Studio 2010 Run-time on the server where application will be deployed.  

  2. Download is herehttp://www.businessobjects.com/jump/xi/crvs2010/us2_default.asp 
  1. Copy C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ASP.NETClientFiles
  2. Paste to \Inetpub\wwwroot\aspnet_client\system_web\2_0_50727 (or the asp_client folder of the default website).
These steps seem very simple, but for a while I was running the report and getting a blank window.  I noticed a javascript error "bobj is undefined".  That was because I hadn't done steps 2 and 3.  Some searches led me an answer here: http://bytes.com/topic/net/answers/823323-crystal-report-error-bobj-undefined

Crystal Reports - Text or Text Number With Three Decimal Places


This is a Crystal Report formula field.  The requirement is to display the string 'No Data' when the value is null and if it isn't null show the number with three decimal places.To display 'No Data' both parts of the if must be converted to text.

If NumericText ({SupplierStatistic.pHMin}) Then 
    ToText(ToNumber({SupplierStatistic.pHMin}),3)
Else
    'No Data'