or
But, I find that that when I use identity impersonation to allow this code to work (configured via web.config), the impersonated account needs admin rights on the web server. Our network admin would prefer to give specific rights to this account, vs. just adding to the administrators group. Can you tell us what those would be? He thought maybe a temp file was being created somewhere on the server to support the printing.
Thanks in advance!
public Stream GetReportBytes(Guid studyId, string userName) { ReportProcessor reportProcessor = new ReportProcessor(); Telerik.Reporting.InstanceReportSource instanceReportSource = new Telerik.Reporting.InstanceReportSource(); ProjectReport reportToExport = new ProjectReport(); reportToExport.ReportParameters[0].Value = studyId.ToString(); reportToExport.ReportParameters[1].Value = userName; instanceReportSource.ReportDocument = reportToExport; RenderingResult result = reportProcessor.RenderReport("PDF", instanceReportSource, null); return new MemoryStream(result.DocumentBytes); }MainChart.PlotArea.Appearance.FillStyle.FillSettings.BackgroundImage = "~/Images/ci_bg.png";Telerik.Reporting.UriReportSource uriReportSource = new Telerik.Reporting.UriReportSource(); uriReportSource.Uri = @"Report\teszt.trdx"; TelRptViewer.ReportSource = uriReportSource;CustomReport customReport = new CustomReport();// ...set reportparameters...this.ReportViewer.Report = customReport;// report is getting generated and viewer shows an error