日期:2014-05-20 浏览次数:20755 次
private void printSheet0() { ReportViewEmail_form r_f = new ReportViewEmail_form();//Email this.rptv1.Visible = false; r_f.rptv.Clear(); r_f.rptv.LocalReport.DataSources.Clear(); r_f.rptv.LocalReport.ReportEmbeddedResource = "SunNet.TEI_Form.Reports.Billing.Report1.rdlc"; DataSet ds = (new PrLiabManager()).GetPrLiabList_for_printSheet1(); ReportDataSource rds = new ReportDataSource("DataSet_TatolCount", ds.Tables[1]); r_f.rptv.LocalReport.DataSources.Add(rds); ReportParameter rp = new ReportParameter("tatolCount", ds.Tables[1].Rows[0].ItemArray[0].ToString()); r_f.rptv.LocalReport.SetParameters(new ReportParameter[] { rp });//这句出错! r_f.rptv.LocalReport.Refresh(); r_f.rptv.RefreshReport(); r_f.rptv.Refresh(); r_f.ShowDialog(); }