gbhs 0 Junior Poster in Training

Hi to all
I want use one reportviewer for several reports each with a parameter.
This person has done it here
http://www.sourcecodester.com/visual-basic-net/load-rdlc-report-using-report-viewer-programmatically.html
without parameters.
How can it be used with parameter for each report.

when I change line 15 to

da.Fill(ds.Employees,txtEmployeeID.text)

(where txtEmployeeID holds employee ID as a SQL parameter), code runs but no report.

I get the error

"An error occurred during local report processing. The report definition for report 'Employees' has
not been specified. Could not find the file C:\Users...\Bin\Debug\Employees.rdlc"

And curiously my report path is C:\Users...\Desktop\MyReport\RepTrial\RepTrial\Employees.rdlc

Some say that if we change the report's Build Action property from 'Embedded Resource' to 'Content'
it will work. It hasn't for me.

Please teach this newbie.
gbhs

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.