C# 如何在MS Report Viewer中逐页加载数据?
如何将数据逐页从数据库加载到MS Report viewer 现在我使用以下代码:C# 如何在MS Report Viewer中逐页加载数据?,c#,wpf,ms-reports,C#,Wpf,Ms Reports,如何将数据逐页从数据库加载到MS Report viewer 现在我使用以下代码: private void LoadData() { reportDataSource1 = new Microsoft.Reporting.WinForms.ReportDataSource(); merchent = new Merchant(); reportDataSource1.Name = "DataSet1";
private void LoadData()
{
reportDataSource1 = new Microsoft.Reporting.WinForms.ReportDataSource();
merchent = new Merchant();
reportDataSource1.Name = "DataSet1";
reportDataSource1.Value = merchent.GetProducts();
this._reportViewer.LocalReport.DataSources.Add(reportDataSource1);
this._reportViewer.LocalReport.ReportPath = "../../Report1.rdlc";
_reportViewer.RefreshReport();
}
在这里,我想首先将所有数据添加到DataSource。我想在单击“下一步”按钮时添加下一页记录集
有什么办法吗?使用SSR
否则,使用SSRS尊重空白的事实对您有利,并在RDLC文件中故意放置空白以导致分页
在ReportingServices中,必须将InteractiveHeight设置为大于0的数字。如果设置为0,则将显示分页disabled@Sreejith我阅读这个问题的方式是加载并设置数据源一次(按照显示的代码),每页有一个产品。我没有将此问题解释为禁用分页。