This is a migrated thread and some comments may be shown as answers.

Reload Report

3 Answers 125 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Flávio
Top achievements
Rank 1
Flávio asked on 16 Jun 2011, 07:21 PM
Hi,

  I'm creating a report where I need to pass some parameters, but I need reload the report after load the method. I'd like know how to do reload the report in runtime?

I tried that, but isn't work.
User obj = this._userService.ReturnByHql("from User as o where u.dstId.dstId = " + int.Parse(this.cbxDistributor.SelectedItem.Value) + " order by u.usrId desc")
ReportViewer1.Report = obj;
ReportViewer1.RefreshReport();

Thanks Attention!

3 Answers, 1 is accepted

Sort by
0
Massimiliano Bassili
Top achievements
Rank 1
answered on 17 Jun 2011, 07:43 AM
The report property of the viewer expects IReportDocument!

Cheers!
0
Flávio
Top achievements
Rank 1
answered on 17 Jun 2011, 12:23 PM
Hi,

  Not Found that page!

Thanks Attentions!
0
Massimiliano Bassili
Top achievements
Rank 1
answered on 17 Jun 2011, 01:19 PM
Sorry, try again. Additionally the name itself explains what is the expected type, so you can manually search in the reporting api or even google.

Cheers!
Tags
General Discussions
Asked by
Flávio
Top achievements
Rank 1
Answers by
Massimiliano Bassili
Top achievements
Rank 1
Flávio
Top achievements
Rank 1
Share this question
or