Compilation Errors

Updated June 5, 2006
Iron Speed Designer V4.0 and later

If you get compilation errors when compiling an application after incorporating a Crystal Reports example, please ensure that you have followed the following steps:


Step 1:  Open the project in Visual Studio and double-click the AssemblyInfo.cs file in Solution Explorer.  (Note: this applies only to C# projects and does not apply to Visual Basic .NET projects).

Step 2:  In AssemblyInfo.cs, locate the following code:

[assembly: CLSCompliant(true)]

Step 3:  Replace the above line with:

[assembly: CLSCompliant(false)]

Step 4:  Add a Crystal Reports report by right-clicking on the project in Solution Explorer and selecting:

Add à Add New Item à Crystal Report

Step 5:  Build the application in Visual Studio .NET.

Step 6:  Locate and open the page’s class that contains the Crystal Reports, e.g.:

ShowProductsTable.aspx.cs or .vb

Step 7:  Insert the following lines at the top of the page’s class file.  These statements link the necessary Crystal Reports objects into your application.


using CrystalDecisions.CrystalReports.Engine;

using CrystalDecisions.Shared;

Visual Basic .NET:

Imports CrystalDecisions.CrystalReports.Engine

Imports CrystalDecisions.Shared

Step 8:  In Iron Speed Designer’s Application Wizard, set your application to compile with Visual Studio .NET instead of CSC or VBC.

Step 9:  Build and run the application.

See Also

Creating a Crystal Reports Report File

Adding a Crystal Report to Your Iron Speed Designer Application

Adding Crystal Reports References to Your Project

Opening Crystal Reports PDF Files in Separate Browser Windows

Deploying a Crystal Reports Application

Compilation Errors