on 03-20-2009 5:46 PM
I am running Crystal Reports Basic for Visual Studio 2008.
I would like to dynamically refresh my report based on a parameter.
For instance, I'll have a customer contract and I want to switch between customers based on a VB.NET winform button click.
I was expecting the code below to work, but I keep getting the "Enter Parameter Values" dialog box, why isn't it using the parameter value that I just set it?
-
CustomerReport1.SetParameterValue("CustomerID", txtCustID.Text)
CrystalReportViewer1.RefreshReport()
The refresh is probably blowing out the parameter you just set.
Dont use .refresh.
Just set the parameter and then set the reportsource to the report.
Jason
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.