[英]What's the difference between ReportViewer.LocalReport.Refresh and ReportViewer.RefreshData?
What's the difference between ReportViewer.LocalReport.Refresh
and ReportViewer.RefreshData
? ReportViewer.LocalReport.Refresh
和ReportViewer.RefreshData
什么区别? It is necessary to execute ReportViewer.LocalReport.Refresh()
before ReportViewer.RefreshData()
when rendering a local RDLC report, or there is another way? 有必要执行
ReportViewer.LocalReport.Refresh()
之前ReportViewer.RefreshData()
渲染当一个地方RDLC报告,或有另一种方式?
As per my understanding, Calling the 'ReportViewer.RefreshReport()' method causes all data in the report to be reloaded and rendered. 据我了解,调用“ ReportViewer.RefreshReport()”方法会使报表中的所有数据重新加载并呈现。 A call to 'ReportViewer.RefreshReport()' is automatically added to the Form Load event handler when a ReportViewer control is added to a form.
当将ReportViewer控件添加到表单时,对“ ReportViewer.RefreshReport()”的调用会自动添加到Form Load事件处理程序中。
If you are only supplying new data but using the same report definition, you may need to call ReportViewer.LocalReport.Refresh(). 如果仅提供新数据但使用相同的报表定义,则可能需要调用ReportViewer.LocalReport.Refresh()。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.