Hello, I have three C# winforms
1) ReportParameterFrom contains a DateTimePicker
2) ShowReportForm contains MS reportViewer
3) The report itself.

The report is filled from a DataSet,one of the dataset fields is a date.
This field is invisible in the report, the report is about Daily sales.

What I want is : when the user chooses a date in ReportParameterForm, and clicks show report button, the report is filtered and only displays sales transactions which their dates are the same as the one user chose.

I have no Idea about Report Parameters, I need a tutorial please.

Any help is appreciated.

Let me make it easier for you, I added a parameter and a filter to the report, the only thing i want to know is how to pass the value of a parameter from a datetimepicker control in other form.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.