<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.iis.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:cs="http://blogs.iis.net/"><channel><title>Search results matching tag 'mhtml'</title><link>http://forums.iis.net/search/SearchResults.aspx?o=DateDescending&amp;tag=mhtml&amp;orTags=0</link><description>Search results matching tag 'mhtml'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>displaying mht files</title><link>http://forums.iis.net/p/1152458/1882254.aspx#1882254</link><pubDate>Fri, 17 Oct 2008 15:32:36 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1882254</guid><dc:creator>hexadis</dc:creator><cs:applicationKey>iis7_-_general--1</cs:applicationKey><description>&lt;p&gt;I am trying to display mht files that are being generated using ActiveReports.&amp;nbsp; The code below shows how I am trying to display these to the users.&lt;/p&gt;
&lt;p&gt;Response.ClearHeaders()&lt;br /&gt;Response.ClearContent()&lt;br /&gt;Response.AddHeader(&amp;quot;Content-Disposition&amp;quot;, &amp;quot;attachment; filename=Certificate.mht&amp;quot;)&lt;br /&gt;Response.WriteFile(&amp;quot;Certificate.mht&amp;quot;)&lt;br /&gt;Response.Flush()&lt;br /&gt;Response.Close()&lt;/p&gt;
&lt;p&gt;If I select Save and save the file to my desktop it can then be opened and display just fine through IE.&amp;nbsp; If, however, I select to open the attachment it displays the mst file without the images included.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I&amp;#39;m using IE7 on a machine running xp sp3.&amp;nbsp; The odd part is that the files do correctly open in IE6 (and&amp;nbsp;firefox using the UnMHT&amp;nbsp;addon)&amp;nbsp;&amp;nbsp;just not IE7.&amp;nbsp; Is this a bug of some sort or am I doing something wrong?&amp;nbsp; I don&amp;#39;t think it has anything to do with the&amp;nbsp;mht files being generrated by ActiveReports since they open just fine from the desktop.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;I have tried setting the content type using both Response.CotentType and Response.AddHeader(&amp;quot;Content-Type&amp;quot;, ...) but IE seems to ignore these content types if the file has a known extension.&amp;nbsp; If I set &lt;font size="2"&gt;Response.Cache.SetCacheability(HttpCacheability.NoCache) so that there is no cacheing, the content type must then be supplied.&amp;nbsp; I&amp;#39;m not sure why those are even related.&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font size="2"&gt;&amp;nbsp;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;I haven&amp;#39;t been able to find much documentation on this stuff either so any links to that would also be appreciated.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;Thanks in advance for any replies :)&lt;/p&gt;</description></item></channel></rss>