To refresh your memory, remember that in Part 3 we are displaying the parameters
in a Panel container on the ReportViewer.ascx user control page. A button that
is hidden on the page is visible once the parameters are populated. Clicking
on this button displays the report, and is the subject of this article.
The controls that are not dynamically created on the page
include a Crystal Viewer control (crvShowReport). This control’s Visible is
set to false initially. Once we have applied the parameters, we will bind the
report to that control and make it visible. Another option for intranets might
be to use the ExportToPdf function in the sample to send the report immediately
to PDF in the browser rather than using the Crystal viewer. This is especially
useful if you have versions of Crystal on your server prior to version 10. If
you do have Version 10 or later, and have installed that on your server, the
viewer has exporting to PDF features built in. In this article, we are going
to utilize the Crystal Viewer.