Advertisement
drkbl

ReportViewer DataTable Parameters

Feb 21st, 2013
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.41 KB | None | 0 0
  1.     public frmReport(string ReportFileName, DataTable Table, ReportParameter[] Params)
  2.       : this() {
  3.       rvMain.LocalReport.DataSources.Add(new ReportDataSource("DataSet1_" + Table.TableName, Table));
  4.       rvMain.ZoomMode = ZoomMode.FullPage;
  5.       rvMain.LocalReport.ReportPath = ReportFileName;
  6.       rvMain.LocalReport.SetParameters(Params);
  7.       rvMain.SetDisplayMode(DisplayMode.PrintLayout);
  8.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement