<?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>IIS7 - General</title><link>http://forums.iis.net/1041.aspx</link><description>For any general questions relating to IIS 7</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: displaying mht files</title><link>http://forums.iis.net/thread/1882792.aspx</link><pubDate>Fri, 24 Oct 2008 06:14:58 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1882792</guid><dc:creator>Andrew Zhu - MSFT</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1882792.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1041&amp;PostID=1882792</wfw:commentRss><description>&lt;p&gt;We test your code in both IIS6 and IIS7, your issue is recured in our environment. IE 7 cannot decode the image bits to display images which saved by IE6.&lt;/p&gt;
&lt;p&gt;It is a issue caused by IE7 but not IIS. &lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item><item><title>Re: displaying mht files</title><link>http://forums.iis.net/thread/1882439.aspx</link><pubDate>Mon, 20 Oct 2008 16:55:16 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1882439</guid><dc:creator>dilworth</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1882439.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1041&amp;PostID=1882439</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m having the same type of issue where images in mht files does not display when using IE7 but they do when using IE6.&amp;nbsp;&amp;nbsp; I tested&amp;nbsp;the mht file when saving in IE6 and IE7 but have the same issue when trying to display the mht file on machines with&amp;nbsp;IE7.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Did anyone figure out how I need to fix this.?&lt;/p&gt;</description></item><item><title>Re: displaying mht files</title><link>http://forums.iis.net/thread/1882284.aspx</link><pubDate>Fri, 17 Oct 2008 21:44:49 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1882284</guid><dc:creator>hexadis</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1882284.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1041&amp;PostID=1882284</wfw:commentRss><description>&lt;p&gt;Unless cacheing is turned off, the ContentType seems to be ignored.&amp;nbsp; If I turn cacheing off setting the ContentType to &amp;quot;message/rfc822&amp;quot; is required to make IE realize its an mht file, but it still loads it without the pictures.&lt;/p&gt;</description></item><item><title>Re: displaying mht files</title><link>http://forums.iis.net/thread/1882279.aspx</link><pubDate>Fri, 17 Oct 2008 20:04:23 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1882279</guid><dc:creator>CarlosAg</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1882279.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1041&amp;PostID=1882279</wfw:commentRss><description>&lt;p&gt;Also, you could try setting the ContentType to &amp;quot;message/rfc822&amp;quot;&lt;/p&gt;</description></item><item><title>Re: displaying mht files</title><link>http://forums.iis.net/thread/1882264.aspx</link><pubDate>Fri, 17 Oct 2008 16:44:55 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1882264</guid><dc:creator>steve schofield</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1882264.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1041&amp;PostID=1882264</wfw:commentRss><description>&lt;p&gt;Is static or dynamic compression enabled?&amp;nbsp; If so, try adjusting that.&amp;nbsp; I&amp;#39;ve seen &amp;#39;strange&amp;#39; behavior with IIS compression and IE.&amp;nbsp; :)&lt;/p&gt;</description></item><item><title>displaying mht files</title><link>http://forums.iis.net/thread/1882254.aspx</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><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1882254.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1041&amp;PostID=1882254</wfw:commentRss><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>