Embed PDF (or image?) from Kendo UI into telerik report

1 Answer 48 Views
Converters Map PictureBox Report Designer (standalone) Report Parameters SubReport
J.T.
Top achievements
Rank 2
Iron
J.T. asked on 26 Jun 2024, 05:03 PM

Hi Team, 

I'm looking to embed a web map (DOM element) into a telerik report. I was looking at the Kendo UI export PDF method and saw it could do base64, however, it appears that the picture box interprets this as a URL instead of an image. Is there any workflow where I can use the Kendo UI pdf processor (or related kendo methods) to acquire an image or pdf to embed inside of a telerik report via reporting parameter? 

This method inspired the idea:
https://www.telerik.com/kendo-vue-ui/components/pdf-processing/

Example Webmap with related widgets (Ideally I would want to capture everything within the "mapViewDiv"):
https://livingatlas.arcgis.com/sea-ice/ 

Thanks!
-J.T. 

1 Answer, 1 is accepted

Sort by
1
Accepted
Dimitar
Telerik team
answered on 01 Jul 2024, 12:15 PM | edited on 01 Jul 2024, 12:16 PM

Hello J.T.,

Thank you for the provided information!

Unfortunately, Telerik Reporting does not support embedding PDF documents in the reports. Even when the data of the PDF is encoded into a base64 string, that is still not an image and it cannot be used by the PictureBox item.

One option that you have in this scenario is to write custom code that converts the PDF into an image and then presents it to the report with a custom user function - Custom User Functions Explained - Telerik Reporting.

With that being said, I noticed that Kendo UI for Vue already has a Map component that supports exporting the map to image - Vue Map Component & Export Options - Kendo UI for Vue Docs & Demos (telerik.com), is there a reason not to use this option?

Additionally, Telerik Reporting also has its own Map item implementation that you may use instead - Beginning with the Map Report Item - Telerik Reporting. I recommend trying this option as the other two would require you to write a custom function to send the image data to the PictureBox item.

I hope that the suggested alternatives will work for your needs.

Regards,
Dimitar
Progress Telerik

Stay tuned by visiting our roadmap and feedback portal pages, enjoy a smooth take-off with our Getting Started resources, or visit the free self-paced technical training at https://learn.telerik.com/.
J.T.
Top achievements
Rank 2
Iron
commented on 08 Jul 2024, 06:01 PM

Hi Dimitar,

The reason we're not using the Vue Map component is because we work primarily with ESRI webmaps. We have custom widgets built for the ESRI mapping platform, and it would be nice to capture these widgets with the map directly instead of having to remake them in a telerik report and maintain two separate code bases of the same thing. We'll look at solutions we can pursue on the application side of things.

Thanks,
J.T. 
Tags
Converters Map PictureBox Report Designer (standalone) Report Parameters SubReport
Asked by
J.T.
Top achievements
Rank 2
Iron
Answers by
Dimitar
Telerik team
Share this question
or