Click here to Skip to main content
15,888,313 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi
I have a Windows Form on which I create a Report in the form codebehind file.. I'm passing Stored procedure name (SP takes 1 param), para name n value to a method which returns a DataTable.

And Fields from this DataTable become Report data.
Everything works fine. Data is coming and getting displayed right.
But before the Report opens up, it shows an "Enter Parameter Values dialog box". This is the same parameter required by SP.
And if I enter the correct parameter value, it shows the correct data on the report.

Please help me out, in order to hide this "Enter Parameter Values Dialog box".

Thanks in advance.
Posted
Updated 25-Aug-10 8:23am
v4

1 solution

The dialog is showing because you have added a parameter to the report.
You can't 'hide' the dialog, but you can pass a parameter (the correct one) to the report. This will prevent the dialog from appearing.

report.SetParameterValue(ParamNaam, ParamValue)


Of course, replace 'paramname' and 'paramvalue' with the correct name and value for the parameter.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900