|
Report Application Server .NET SDK Developer Guide
|
|
To prepare the Web Form
|
|
- Delete the WebForm1.aspx page that was generated when the project was created.
- From the Project menu, click Add Web Form.
- In the Add New Item dialog box, in the Name field at the bottom, enter the name Default.aspx.
- Click Open.
The Default.aspx Web Form appears in the Solution Explorer and the form opens in the main window.
- 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.
- 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;
|
- Add the Enterprise namespace declarations.
|
Note
|
|
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