Primary classes

Parent Previous Next

 

Report Application Server .NET SDK Developer Guide

Primary classes


 







The two primary classes in the SDK are CrystalReportViewer, which allows you to display reports, and ReportClientDocument, which allows you to create and modify reports.

CrystalReportViewer class

A unique viewer class exists for each kind of presentation layer: Web Form, Windows Form, or mobile form. Each viewer is designed as a form control.

For Web applications, the CrystalReportViewer class is a Web server control. You place this control on the Web Form to render reports. Its corresponding instance in the code-behind class is then linked to RAS, once you assign an instance of ReportClientDocument to its ReportSource property:

Visual Basic

myCrystalReportViewer.ReportSource = myReportClientDocument

C#

crystalReportViewer.ReportSource = reportClientDocument;

The instance of ReportClientDocument comprises a report, which is then rendered on the page by the viewer. For more information on viewers, see .NET report viewer controls.

Use the CrystalDecisions.Web namespace for the Web Form version of the CrystalReportViewer control.

ReportClientDocument class

ReportClientDocument is the central class from which the other classes in the SDK are accessed. The instance of ReportClientDocument comprises a report that can be modified programmatically by its class properties. These properties are linked to a series of other libraries in the SDK that contain controllers, data definition models, and report definition models:

NoteNote

For detailed information on the RAS object model, see ReportClientDocument Object Model.

This ReportClientDocument instance may consist of several types of reports:

The ReportClientDocument class instance may be loaded only long enough to pass the instance to the viewer for display, before it passes out of scope. However, the class instance may also be modified, and then saved as a report to a directory with one of the controller classes. For more information on ReportClientDocument and its relationship to the rest of the classes in the SDK, see RAS SDK.

© 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: iPhone web sites made easy