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

Implementing the Part Viewer

The Part viewer works much the same way as the Page viewer—in fact, much of the code is exactly the same, except for the type of viewer object that is created. Listing 32.6 assumes that the report to be displayed has an initial report part defined in the report itself.

Listing 32.6. Viewing a Report Using the Report Part Viewer
 //To create a Java report part viewer you need to instantiate a //CrystalReportPartsViewer object: CrystalReportPartsViewer viewer = new CrystalReportPartsViewer(); //Obtain a ReportSource object. Set the viewer's report source by calling its //setReportSource method viewer.setReportSource(reportSource); //After you have created and initialized a Java report part viewer, you //call its processHttpRequest ...

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