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

Opening HTML5Interactive in browser with a broken image

1 Answer 42 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Soori
Top achievements
Rank 1
Soori asked on 20 Apr 2015, 01:30 PM

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 ?

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 23 Apr 2015, 07:20 AM
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.


Regards,
Stef
Telerik
 

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

 
Tags
General Discussions
Asked by
Soori
Top achievements
Rank 1
Answers by
Stef
Telerik team
Share this question
or