To prepare the Web Form

Parent Previous Next

 

Report Application Server .NET SDK Developer Guide

To prepare the Web Form


 







  1. Delete the WebForm1.aspx page that was generated when the project was created.
  2. From the Project menu, click Add Web Form.
  3. In the Add New Item dialog box, in the Name field at the bottom, enter the name Default.aspx.
  4. Click Open.

The Default.aspx Web Form appears in the Solution Explorer and the form opens in the main window.

  1. On the View menu, click Code.

The code-behind class for the Default.aspx Web Form (_Default class) appears, which contains a Web Form Designer generated code region.

  1. Above the class signature, add an "Imports" [Visual Basic] or "using" [C#] declaration to the top of the class for the namespaces.

Visual Basic

Imports CrystalDecisions.CrystalReports.TemplateEngine
Imports CrystalDecisions.ReportAppServer.ClientDoc
Imports CrystalDecisions.ReportAppServer.Controllers
Imports CrystalDecisions.ReportAppServer.DataDefModel
Imports CrystalDecisions.ReportAppServer.CommonObjectModel
Imports CrystalDecisions.ReportAppServer.ObjectFactory
Imports CrystalDecisions.ReportAppServer.ReportDefModel

C#

using CrystalDecisions.CrystalReports.TemplateEngine;
using CrystalDecisions.ReportAppServer.ClientDoc;
using CrystalDecisions.ReportAppServer.Controllers;
using CrystalDecisions.ReportAppServer.DataDefModel;
using CrystalDecisions.ReportAppServer.CommonObjectModel;
using CrystalDecisions.ReportAppServer.ObjectFactory;
using CrystalDecisions.ReportAppServer.ReportDefModel;

  1. Add the Enterprise namespace declarations.

NoteNote

These namespaces are only required for projects that are accessing managed reports from a SAP BusinessObjects Enterprise environment.

Visual Basic

Imports CrystalDecisions.Enterprise

C#

using CrystalDecisions.Enterprise;

Next, you add a private helper method that is used as the designated location for all the code that configures RAS for the class

© 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: Free EPub producer