To add Imports/Using statements to reference namespaces

Parent Previous Next

 

Report Application Server .NET SDK Developer Guide

To add Imports/Using statements to reference namespaces


 







  1. Open the Default.aspx page.
  2. From the View menu, click Code.

The code-beside class for the Web Form appears.

  1. Above the class signature, add an "Imports" [Visual Basic] or "using" [C#] declaration for the namespaces of the assemblies that are listed above.

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;

NoteNote

The classes of these two assemblies are commonly used in all tutorials. For any additional assemblies that you may occasionally require in specific tutorials, you will be directed to add them during that tutorial.

© 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: Full-featured EBook editor