LocalReport localReport = new LocalReport(); localReport.ReportPath = System.Web.HttpContext.Current.Server.MapPath(this.LocalModel.FileName); this.LocalModel.ReportDataSets.ForEach( k=> { localReport.DataSources.Add(k); }); localReport.EnableExternalImages = true; string reportType = this.LocalModel.Format.ToString(); string encoding; string fileNameExtension; string deviceInfo = "<DeviceInfo>" + " <OutputFormat>" + this.LocalModel.Format.ToString() + "</OutputFormat>" + "</DeviceInfo>"; Warning[] warnings; string[] streams; byte[] renderedBytes; localReport.Refresh(); renderedBytes = localReport.Render( reportType, deviceInfo, out mimeType, out encoding, out fileNameExtension, out streams, out warnings); this.LocalModel.LastmimeType = mimeType;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)