<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/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/"><channel><title>Views</title><link>https://www.infopathdev.com:443/forums/42.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Infopath 2010 Export to .MHT and switch view</title><link>https://www.infopathdev.com:443/forums/thread/82290.aspx</link><pubDate>Tue, 04 Sep 2012 19:29:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:82290</guid><dc:creator>Joemanc</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/82290.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=82290</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m trying to export a view to an .MHT file. I am on one view and in the code&amp;nbsp;behind&amp;nbsp;a button click, I am trying to switch to my Print View and then export that view, but that seems to be a no-go.&lt;/p&gt;&lt;p&gt;I found an old &lt;a href="http://www.infopathdev.com/forums/t/7655.aspx"&gt;thread&lt;/a&gt;&amp;nbsp;on the site that discussed this very&amp;nbsp;issue, but that was 4 years&amp;nbsp;and an IP version or 2 ago and there didn&amp;#39;t seem to be a fix back then. Wondering if anyone has come up with a workaround.&lt;/p&gt;&lt;p&gt;In the meantime, I tried a couple of things to no avail. One of them was a&amp;nbsp;solution to &lt;a href="http://www.infopathdev.com/forums/p/12761/56077.aspx#56077"&gt;printing views&lt;/a&gt; and switching, but that does not work with the Export. I also tried to add a Thread.Sleep command to give IP a chance to switch views, but no dice there either.&lt;/p&gt;&lt;p&gt;Joe&lt;/p&gt;</description></item></channel></rss>