• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 35. Creating Enterprise Reportin... > Passing Parameters to the Report

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 needs to be called. This returns an IReportParameterValues interface. There are two types of parameter values that can be added via this interface: a single value or a range value. As the name implies, a single value is an individual parameter value.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint