Crystal Reports .NET Applications and Object Models used
I have been working on Crystal Reports .NET application but never knew the Object Model used by me for programming. The object models in the SDK not only expose the report objects but also manipulate them. Learning about object models has helped me understand the significance of models. With this blog I would like to brief about the object models available with SDK.
CrystalReportViewer or ReportDocument are the two objects models which are normally being used for developing the application using Crystal Reports .NET SDK, with additional licensing, the SDK expands to contain four object models. With each object models complexity & its power to carry out the operations increases. Let us understand them one by one:
- The simplest object model in the league.
- CrystalReportViewer class provides properties, methods, and events that modify or retrieve information about how the CrystalReportViewer control appears and functions.
- This class exists in two different forms: one in a Windows namespace and one in a Web namespace. Therefore, many elements of this object model are duplicated in both namespaces, with some variations to support the differences in the Windows (CrystalDecisions.Windows.Forms namespace) and Web (CrystalDecisions.Web namespace) platforms.
- A more extensive object model than CrystalReportViewer
- ReportDocument class represents a report and contains properties and methods to define, format, load, export, and print the report.
- It is a part of the CrystalDecisions.CrystalReports.Engine namespace
- It can also be called as a gateway to classes present in Engine namespaces.
- This is the most powerful object model for manipulating reports.
- Programmatically one can create, modify, and save changes to every aspect of the report at runtime.
- It is made up of many classes across several namespaces. Each namespace is prefixed with CrystalDecisions.ReportAppServer.
- This object model is available as a part of Report Application Server (RAS) ,which requires additional licensing is required, which is available either as an unmanaged Report Application Server (RAS), or as a managed Report Application Server (BOE).
- The ReportClientDocument object model is available with Crystal Reports 2008 & Crystal Reports for Visual Studio 2010, but allows us to access limited version of the same through ReportDocument.ReportClientDocument property.
- Note: A Report Application Server is available with Crystal Reports Server and BusinessObjects Enterprise.
- This model has been designed for interacting with the enterprise level functions of Crystal Reports Server or BusinessObjects Enterprise.
- InfoObject class functions as a gateway to the full Enterprise object model of Crystal Reports Server or BusinessObjects Enterprise as it represent a wide variety of information entities report files or PDF files which are called as physical entities, and users, servers, or FTP connections also known as network entities.
- It is part of CrystalDecisions.Enterprise group of namespaces.
- Note: It is provided with the Crystal Reports Server or BusinessObjects Enterprise license.