Export HTML/MHTML with image as a link

2 posts, 0 answers
  1. James Shelton-Agar
    James Shelton-Agar avatar
    108 posts
    Member since:
    May 2008

    Posted 15 Sep 2009 Link to this post

    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)
  2. Steve
    Steve avatar
    10941 posts

    Posted 16 Sep 2009 Link to this post

    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,
    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.
Back to Top