This is a migrated thread and some comments may be shown as answers.

Exception on the PDF exported found

1 Answer 20 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 2
alpascual asked on 19 Mar 2010, 10:45 PM
I'm creating a PDF in C# from an existing report that works in the designer and preview, however when trying to exported to PDF I get a simple PDF with this error message inside:
An error has occured while processing Report '':
Exception has been thrown by the target of an invocation.

The only thing in that report is an image!


ReportBook masterReport = new Telerik.Reporting.ReportBook();



foreach (string sUrl in MoreUrls)




CreateReport Myreport = new NCATReporting.CreateReport();




// generate the image and binding it does not work?



WebClient client = new WebClient();



MemoryStream MemStream = new MemoryStream(client.DownloadData(sUrl));



Image image = Image.FromStream(MemStream);



Bitmap imageBitmap = new Bitmap(image);



Myreport.MapReport.Value = imageBitmap;





ReportProcessor reportProcessor =



new Telerik.Reporting.Processing.ReportProcessor();



RenderingResult resultPDF = reportProcessor.RenderReport("PDF", masterReport, null);



1 Answer, 1 is accepted

Sort by
Telerik team
answered on 22 Mar 2010, 12:32 PM
Hello alpascual,

Your question has already been answered in the other thread you've opened.
We kindly ask you to use just one support channel to contact us. Posting the same questions numerous times slows down our response time because we will need to review and address two tickets instead of one. Moreover threads are handled according to license and time of posting, so if it is an urgent problem, we suggest you use a support ticket, which would be handled before a forum thread.
Anyway here is the answer: "Unfortunately we cannot identify what might be causing the error only from the code you've provided. Can you clarify what MapReport is? Have you tried debugging your code by putting a breakpoint and see if it goes through as you would expect? Please do and if you believe the problem is related to our product and not your code, paste the full stack trace so we can see where the error comes from or better off provide us with a runnable sample that exhibits the issue."

Thank you for your understanding.

Sincerely yours,
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
General Discussions
Asked by
Top achievements
Rank 2
Answers by
Telerik team
Share this question