O'Reilly logo

Special Edition Using® Crystal Reports® 10 by Roger Sanborn, Steve Lucas, Kathryn Hunt, Joe Estes, Michael Voloshko, James Edkins, Bob Coates, Naisan Geula, Ryan Marples, Neil FitzGerald

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required