views:

525

answers:

1

Hi to all..

I tried to create 'ReportViewer' control (ASP.net 3.5) dynamically.,

This is Code Snippet : ReportViewer objRpt = new ReportViewer();

objRpt.Reset();

This is error text :

'ReportViewer' does not contain a definition for 'Reset' and no extension method 'Reset' accepting a first argument of type 'ReportViewer' could be found (are you missing a using directive or an assembly reference?

Not only Reset, i can not set any of the property or functions of ReportViewer class.. What i missed here..can you please suggest me.

+1  A: 

Check the link

'Microsoft.Reporting.WebForms.ReportViewer' does not contain a definition for 'Reset'

rahul
But for a Reportviewer control thats avaliable..I created dynamically from Reportviewer control..It throws error
karthik
Please check the answer posted in the link.
rahul