我希望以与同一RDLC报告相同的原始副本,重复副本和一式三份的形式实施报告。
下面是代码段。
DataSet ds = ReportServiceManager.GetInvoiceDS(Id, type);
if (ds.Tables != null && ds.Tables[0].Rows.Count > 0)
{
localReport.DataSources.Add(new ReportDataSource("InvoiceReportDS", ds.Tables[0]));
renderedBytes = localReport.Render(reportType, "", out mimeType, out encoding, out fileNameExtension, out streams, out warnings);
ReportData rData = new ReportData() { ReportDataSource = renderedBytes, FileName = filename };
if (rData.HasReport)
{
ShowReport(rData);
return View();
}
}