Report Export output in MHTML format
Hi All, We use SSRS 2008 R2 Reporting services. We call the reports in Report Viewer in a .Net application. When the generated report is rendered in MHTML format from the Report viewer, It shows the options of 'Open, Save, Cancel'. If we click on 'Save' and save the export output in local m/c and repoen the saved MHTML file its working fine ( it displays all the images and graph items as is in the report) . But when wedirectly click on the 'Open' (without saving) option the mhtml file opens in a new IE window, but the Images or Graph items in report just shows a cross (like X ) symbol. Tablix and all other report item show up properly. We use IE8 version. We are not able to figure out the reason for this. It will be helpful if we get a reason for this or a workaround to solve this issue. Thanks in advance.
February 27th, 2012 11:12pm

Can you paste your invalid MHTML source here. I just suspect there are some resource-link errors there. By default, MHTML will encode these images as base64 resource string.Regards, Nighting Liu
Free Windows Admin Tool Kit Click here and download it now
February 27th, 2012 11:17pm

Hi , As source code exceeds 60k characters i have attached the MHTML file.Kindly check and let us know in which section we have to check in the code.
February 28th, 2012 2:57am

You can just show me a part of the HTML Source including an invalid imageRegards, Nighting Liu
Free Windows Admin Tool Kit Click here and download it now
February 28th, 2012 3:11am

Hi i have included code from the body section of the source code. <IMG onerror="this.errored=true;" class="r1" SRC="cid:9fc48ac24bad4c4494bf9237f0c4ae6a"/>
February 28th, 2012 4:34am

Hi the root cause is very clear: When you export an MHTML, there are two processes in it: Export basic HTML and convert embedded images into a stream ids by Render. In this case "cid:9fc48ac24bad4c4494bf9237f0c4ae6a" Export associated streams by RenderStream. In this case, images will be encoded as base64 format. So when you open that exported MHTML in IE, only the step one exported as HTML. Because images SRC is an ID, the browser don't know where to get the stream. That's why, you can't see these images. It's by design. I don't think we have solution for this.Regards, Nighting Liu
Free Windows Admin Tool Kit Click here and download it now
February 28th, 2012 5:15am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics