win98下 使用reportviewer控件(rdlc报表问题)
老马历写记 博客专家认证 2009-04-23 03:19:10 win98下 使用reportviewer控件(rdlc报表问题).
同样的报表程序,在xp下正常运行,但是在windows98下就不能运行(可以运行donet程序),网上说是在98下只支持remote处理模式,不知道大家有没有碰到此类问题,请指教!
private void FrmCtlTableDemo_Load(object sender, EventArgs e)
{
this.reportViewer1.ProcessingMode = Microsoft.Reporting.WinForms.ProcessingMode.Remote;
this.reportViewer1.LocalReport.ReportPath = @"rdlc\ctlTableDemo.rdlc";
//
this.reportViewer1.ServerReport.ReportPath = @"rdlc\ctlTableDemo.rdlc";
//this.reportViewer1.ServerReport.
//
reportViewer1.LocalReport.DataSources.Add(new ReportDataSource("ctlsDemo_vSales", LoadData()));
//
ReportParameter p = new ReportParameter("prod_cat_sub", "Component");
reportViewer1.LocalReport.SetParameters(new ReportParameter[] { p });
//
this.reportViewer1.RefreshReport();
}