Report Objects


Normally, when you think of a report, you probably think of some sort of physical output, either on a computer screen or on paper. In Crystal Reports, a Report object represents the information needed to generate a report. It determines which fields are selected from what data source, how the fields are arranged and summarized, and any text that is displayed on the result.

A report is stored in a file with an .rpt extension. This file can be either included inside the application or loaded from a separate file. Each of these approaches has its advantages. Embedding a report in an application makes using and distributing the application somewhat easier. On the other hand, if an application loads a report from an external file, you can modify or replace the report file without recompiling the application.

At runtime, a program can attach a report (either internal or external) to a data source and then use a CrystalReportViewer control to display the result. This control provides tools that enable the user to move between the report’s different pages, zoom in and out, navigate through report groups using a tree view, view subreports, print or export the report, and so forth.




Visual Basic 2005 with  .NET 3.0 Programmer's Reference
Visual Basic 2005 with .NET 3.0 Programmer's Reference
ISBN: 470137053
EAN: N/A
Year: 2007
Pages: 417

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net