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

Export HTML/MHTML with image as a link

1 Answer 147 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
James Shelton Agar
Top achievements
Rank 2
James Shelton Agar asked on 16 Sep 2009, 12:54 AM
Hi there, we have been using the telerik reporting for quite a while now, and found it handy in most of the scenarios we're facing. Thanks for the great work.

However, one of the problem we got now is that as we send the report as an email out (which using MHTML, and works fine), the mail content become large as what telerik reporting engine generate all images as mime and embeds into the content.
as example
<img alt="Image" src="cid:uf32gweyf5y" style="width:100%; height:100%" /></div

then as we generate the report as HTML, it export the follow for image
<img alt="Image" src="/Telerik.ReportViewer.axd?culture=en-NZ&amp;uiculture=en-US&amp;instanceid=3d09e5a8d49d412c9e85073ece538511&amp;&amp;optype=ReportImage&amp;StreamID=m4b13jtidmk" style="width:100%; height:100%" /> 

The question is, how would we export it, as the orignal link instead? Is that a way which we can put a unique identfier and replace it in the code-behind as work around? (prefer no workaround though)

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 16 Sep 2009, 11:13 AM
Hello James,

If you need this report only for rendering in MHTML and sending through email, then you can achieve that using a standard TextBox item with appropriate expression e.g.:

<img src="http://www.telerik.com/images/reporting/cars/NSXGT_7.jpg"></img>

We would further research and see if we can implement your suggestion in order to reduce the MHTML size.

Sincerely yours,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
General Discussions
Asked by
James Shelton Agar
Top achievements
Rank 2
Answers by
Steve
Telerik team
Share this question
or