What's the difference between ReportViewer.LocalReport.Refresh
and ReportViewer.RefreshData
? It is necessary to execute ReportViewer.LocalReport.Refresh()
before ReportViewer.RefreshData()
when rendering a local RDLC report, or there is another way?
As per my understanding, Calling the 'ReportViewer.RefreshReport()' method causes all data in the report to be reloaded and rendered. A call to 'ReportViewer.RefreshReport()' is automatically added to the Form Load event handler when a ReportViewer control is added to a form.
If you are only supplying new data but using the same report definition, you may need to call ReportViewer.LocalReport.Refresh().
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.