Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2008
Visual Studio
Tools and Features
Crystal Reports
Tutorials
 Creating a Windows Project with a C...

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
Crystal Reports Basic for Visual Studio
Creating a Windows Project with a CrystalReportViewer Control

Before you create a Windows Project, verify that Crystal Reports for Visual Studio has been installed on your system. For more information, see What Needs to be Installed?.

  1. Launch Visual Studio.
  2. From the File menu, select New, and then click Project.
  3. In the New Project dialog box, select a language folder for C# or Visual Basic from the Project Types list.
  4. From the Templates list, click Windows Application.
  5. In the Name field, replace the default project name with the name of your project.
  6. Click OK.

    Your project opens in Solution Explorer and contains a Form1 class.

  7. Open the Form1 class.
  8. From the Toolbox, open the Crystal Reports node to locate the CrystalReportViewer control.
  9. Drag the CrystalReportViewer control onto the Windows Form.
  10. From the Properties window, set the Name property:
    • For Visual Basic projects, set the value to "myCrystalReportViewer."
    • For C# projects, set the value to "crystalReportViewer."
  11. From the File menu, click Save All.
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker