I have a Telerik Reporting Library 2019 project which contains Telerik Reports. The reports are consumed from a ASP.NET Core web application when controller actions are called. So there is a reference to this Reporting library project from Web project.
In the web project I create a ReportBook to generate report. and render the report as a PDF.
, Name =
async Task<IActionResult> Get(Guid reportId)
var reportBook =
var instanceReportBookSource =
ReportDocument = reportBook
var coverPageReportSource =
var coverPagereport =
"Cover Page Report"
coverPageReportSource.ReportDocument = coverPagereport;
var reportProcessor =
var renderingResult = reportProcessor.RenderReport(
var fileName = renderingResult.DocumentName +
var path = Path.GetTempPath();
var filePath = Path.Combine(path, fileName);
(var fs =
fs.Write(renderingResult.DocumentBytes, 0, renderingResult.DocumentBytes.Length);
var output = renderingResult.DocumentBytes;
In the reports I have few PictureBox components. I want to set pictures from a http url (https://docs.telerik.com/reporting/report-items-picture-box#data-binding)
var pictureBox = ((Telerik.Reporting.PictureBox)(reportDef.Items.Find(
But when I try to do that it always gives an error (report-error.png). Is this because I have report definition in one project and consuming it from another project (web project). How can I solve this.