To add a CrystalReportViewer control

Parent Previous Next

 

Report Application Server .NET SDK Developer Guide

To add a CrystalReportViewer control


 







  1. Open the Default.aspx page.
  2. From the View menu, click Designer.
  3. From the Toolbox, open the Crystal Reports node to locate the CrystalReportViewer control.
  4. Drag and drop the CrystalReportViewer control onto the Web Form.

The CrystalReportViewer control displays a new GUI feature known as a Smart Task panel on the upper-right corner of the control.

NoteNote

This is part of the reduced-code development model provided with ASP.NET version 2.0. The Smart Task panel for the CrystalReportViewer control simplifies configuration of functionality such as report binding and control layout using GUI settings. Any selections that you make in the Smart Task panel are then auto-generated as tag-based settings within the ASPX page. Since you are currently working with the code-based development model, the Smart Task panel is not used during this setup. To learn more about the Smart Task panel, see Smart Tasks.

  1. If the Smart Task panel "CrystalReportViewer Tasks" is open, press Esc on your keyboard to close it.
  2. Click the CrystalReportViewer control to select it.
  3. From the Properties window, set the ID property:

For Visual Basic Web Sites, set the ID property to myCrystalReportViewer.

For C# Web Sites, set the ID property to crystalReportViewer.

  1. From the File menu, click Save All.

In the next section you add namespace references for Crystal Reports namespaces.

Continue to To add Imports/Using statements to reference namespaces .

© 2021 SAP AG. All rights reserved.

http://www.sap.com/sapbusinessobjects/

Support services

http://service.sap.com/bosap-support/

Created with the Personal Edition of HelpNDoc: Produce Kindle eBooks easily