Sorry Brian,
I could not find a way to paste a screen shot of the properties dialog which would explain it at a glance. So I will do it by steps, many will already know how send a value to another page via a HyperLinkedField or the other url options.
Lets assume we have already designed our Crystal report with a parameter field, could be CustomerID for example and in the CrystalReportViewer tasks "Enable Report Parameter Prompting" is ticked per default.
This presents the generic Crystal prompt when a end user navigates to the web page in question. If we want to simply view & print this report based on supplying a value from a custom webform without prompting the end user to enter the details, in the past it would seem 20 lines of code were needed to supply a discrete parameter to a report.
In VS2005 I believe the intregration with .net 2.0 may be a little tighter than previous versions and most of the examples I found were for .net 1.1
1. Open your page containing the CrystalReportViewer that is expecting a parameter to be passed when it runs the report assigned to it
2. Drag & drop a HiddenField control from the VS Toolbox onto the page.
3. Add the following to your page load to populate the HiddenField.Value value at run time, replace "CustomerID" with your own value.
HiddenField1.Value = Request.QueryString["CustomerID"];
4. Click on your CrystalReportSource and navigate to the properties explorer and expand the "Report" option and select the Parameters (Collection) within.
5. In the Parameter Collection Editor now being displayed click the "Add" button.
6. Select your report parameter which will be visable in the dropdown selector top right hand side of the Editor.
7. Imediately underneath this tick the "Specify ContolID" option, this will expose all contols on the page in another dropdown and then select your HiddenField (default name is HiddenField1) and click "OK" , your done its that simple.
This will automatically update the Crystal report parameter with the HiddenField1.Value at run time
Now every time your user is directed to this from another page which has passed a parameter value the report will preview ready printing or exporting without prompting the user for input.
I hope everyone understands steps involved, as per my original post 1 line of .net code added to the page and a few mouse clicks. No need to write any Crystal logic into the page at all, smart tags all the way.
Regards
Kim