Passing Parameters to the Report
Many of today's reports have parameters defined in them. This allows reports to be dynamic and adaptable. When reports are scheduled, any parameters defined in the report need to have a value unless a default value is already defined. Like database credentials, parameter values can be manually typed in from the Crystal Management Console on the Process tab. However, I describe how to accomplish this programmatically here.
From the IReport interface, call the getReportParameters method. This returns a collection of IReportParameter objects. There is one object in the collection per parameter values required for the report. After the IReportParameter interface is obtained, there is a getCurrentValues method that ...
Get Special Edition Using® Crystal Reports® 10 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.