Many of the reporting applications that I have worked on
have had many business rules that called for complex logic to manipulate specific
aspects of the reports. In order to maintain the business rules easily, we want
to abstract as many of these business rules out of the report as we can, and
include them in external code before the report is rendered. In this article we
will discuss the business objects (no pun intended) that Crystal Reports 2008
includes and how you can harness the power to create reports that are dynamic
and customized for your needs.
Common Programmability Tasks
The Crystal Reports reporting API is very large, and handles
many business use cases for enterprise and small business reporting
applications. The two major objects that developers work with for rendering
Crystal Reports with an application are the CrystalReportViewer and the
ReportDocument. There are two types of CrystalReportViewer objects within
Crystal Reports 2008. One is found inside of CrystalDescisions.Windows.Form
assembly and is used for WinForms, and the other is found inside of
CrystalDescisions.Web and is used for ASP.NET.