reportViewer1报表打印
2008-06-18 11:10
225 查看
if (ds.Tables[0].Rows.Count > 0)
{
//为报表浏览器指定报表文件
reportViewer1.LocalReport.ReportEmbeddedResource = "Report1.rdlc";
//显示报表
reportViewer1.LocalReport.DataSources.Clear();
reportViewer1.LocalReport.ReportPath = "Report1.rdlc";
reportViewer1.LocalReport.DataSources.Clear();
Microsoft.Reporting.WinForms.ReportDataSource reportDataSource1 = new Microsoft.Reporting.WinForms.ReportDataSource("DataSet1_ep01NEW", ds.Tables[0]);
reportViewer1.LocalReport.DataSources.Add(reportDataSource1);
reportViewer1.LocalReport.Refresh();
reportViewer1.RefreshReport();
//CrystalReport1 report = new CrystalReport1();
//report.SetDataSource(ds);
//Form2 f2 = new Form2();
//f2.SetReportSouce(report);
//f2.Show();
}
{
//为报表浏览器指定报表文件
reportViewer1.LocalReport.ReportEmbeddedResource = "Report1.rdlc";
//显示报表
reportViewer1.LocalReport.DataSources.Clear();
reportViewer1.LocalReport.ReportPath = "Report1.rdlc";
reportViewer1.LocalReport.DataSources.Clear();
Microsoft.Reporting.WinForms.ReportDataSource reportDataSource1 = new Microsoft.Reporting.WinForms.ReportDataSource("DataSet1_ep01NEW", ds.Tables[0]);
reportViewer1.LocalReport.DataSources.Add(reportDataSource1);
reportViewer1.LocalReport.Refresh();
reportViewer1.RefreshReport();
//CrystalReport1 report = new CrystalReport1();
//report.SetDataSource(ds);
//Form2 f2 = new Form2();
//f2.SetReportSouce(report);
//f2.Show();
}
相关文章推荐
- 简单的ReportViewer报表打印
- 折腾 VS2008 + ReportViewer + CrystalReports + PrintControl.cab 实现水晶报表本地打印
- 折腾 VS2008 + ReportViewer + CrystalReports + PrintControl.cab 实现水晶报表本地打印
- C#中, 动态的将图片传递给ReportViewer中的报表. - 自动打印
- 谷歌浏览器(Chorme) 水晶报表(Crystal Report )ReportViewer无法打印,无打印按钮
- 折腾 VS2008 + ReportViewer + CrystalReports + PrintControl.cab 实现水晶报表本地打印
- 折腾 VS2008 + ReportViewer + CrystalReports + PrintControl.cab 实现水晶报表本地打印【转】
- 折腾 VS2008 + ReportViewer + CrystalReports + PrintControl.cab 实现水晶报表本地打印
- 折腾 VS2008 + ReportViewer + CrystalReports + PrintControl.cab 实现水晶报表本地打印
- VS2008 + ReportViewer + CrystalReports + PrintControl.cab 实现水晶报表本地打印
- 折腾 VS2008 + ReportViewer + CrystalReports + PrintControl.cab 实现水晶报表本地打印
- 折腾 VS2008 + ReportViewer + CrystalReports + PrintControl.cab 实现水晶报表本地打印
- VS2005中ReportViewer 本地模式下报表呈现 入门示例
- 利用reportviewer与C#生成报表
- FastReport.NET报表控件功能详解—预览、打印和导出
- Microsoft ReportViewer(微软报表)项目中的应用
- MICROSOFT REPORTVIEWER(微软报表)项目中的应用
- ReportViewer教程(15)-矩阵报表-2
- vs ReportViewer 报表控件
- CrystalReportViewer 打印功能ActiveX pdf