Opening HTML5Interactive in browser with a broken image

2 posts, 0 answers
  1. Soori
    Soori avatar
    7 posts
    Member since:
    Jun 2013

    Posted 20 Apr 2015 Link to this post

    Hi ,

    I am working on a POC using Telerik report designer. 

    I want to generate a html5 or HTML5Interactive and open it in browser or inside an email body without using Telerik report viewer .

    In the report I have a .png image as logo. But when i generated the report programmatically image will be converted to a .bmp and image in the html body is broken.

    I can fix this by renaming the image in html by adding the extension to the image . How can i fix this issue directly using a configuration or something ?

  2. Stef
    Stef avatar
    3611 posts

    Posted 23 Apr 2015 Link to this post

    Hello Soori,

    Please check Exporting Report Programmatically (Exporting a report to a multi document format). The code snippet illustrates how to use second overload of the ReportProcessor.ExportReport method. The only changes you must apply are:
    1. The way the report is wrapped and pass. You can use any of the available report source types depending on how your reports are created.
    2. Use the rendering format by name (rendering extensions details are listed here).
    3. Pass the device settings suitable for the selected rendering format e.g. HTML5Interactive Device Information Settings.

    In the case of the HTML rendering formats, the report will be rendered in HTML documents which have links to external files as images. External resources are linked by relative URI and the file name (without extension). Thus consider saving the rendered resources without file extension unless the current stream contains an HTML document.

    I hope the provided information is helpful.


    See What's Next in App Development. Register for TelerikNEXT.

Back to Top