.NET report viewer controls

Parent Previous Next

 

Report Application Server .NET SDK Developer Guide

.NET report viewer controls


 







Report viewer controls are .NET controls that can be added to a form in a Web application, to display reports on that form. Microsoft .NET controls are special types of classes that are displayed in the Toolbox of Visual Studio products. With the use of .NET controls, complex reporting and display are brought together. All of the complex report information, which used to be encapsulated only in the SAP Crystal Reports stand-alone application, has now been encapsulated within a .NET control as a report viewer. The RAS server can be used in combination with the .NET report viewer control to view and modify reports.

CrystalReportViewer Control

The CrystalReportViewer control is the primary report viewer that is used to view report files in Visual Studio .NET.

The CrystalReportViewer control displays only one report at a time. The report displayed by the control is determined by which report you bind to your code. To tell the control which report to display, you bind the ReportSource property of the control to a particular report. At run time, the control loads the report that is bound to the ReportSource property and displays it.

In its simplest form, the assignment looks like this:

Visual Basic

myCrystalReportViewer.ReportSource = myReportClientDocument

C#

crystalReportViewer.ReportSource = reportClientDocument;

NoteNote

The CrystalReportViewer control binds to a report object, not a data object. This .NET control is only concerned with the display of a report object.

© 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: Write eBooks for the Kindle