<?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>Re: Export multiple views to .MHT</title><link>https://www.infopathdev.com:443/forums/thread/72931.aspx</link><pubDate>Wed, 14 Dec 2011 14:32:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72931</guid><dc:creator>rcant</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72931.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=72931</wfw:commentRss><description>&lt;p&gt;Has anyone figured out a nice Jscript solution to this issue?&amp;nbsp; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;I have been trying with out any real positive results&lt;/p&gt;
&lt;p&gt;Similar to above i want to Export &amp;quot;View 1&amp;quot; to MHT from a button click in &amp;quot;View 2&amp;quot;.&amp;nbsp; (and perahps export a few other views from the same click)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item><item><title>Re: Export multiple views to .MHT</title><link>https://www.infopathdev.com:443/forums/thread/11526.aspx</link><pubDate>Sun, 16 Apr 2006 07:31:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11526</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11526.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=11526</wfw:commentRss><description>Have you tried using rules and actions to do this:&lt;br /&gt;1. Create a button for your double export (if you don't have one)&lt;br /&gt;2. Add a rule to the button with a condition that checks "The Expression" where the right-hand side calls xdExtension:ExportViewAsMHT()&lt;br /&gt;3. Set the action to switch to the new view&lt;br /&gt;4. Add another rule that does the same thing and swiches back in the action&lt;br /&gt;&lt;br /&gt;Not sure this will work, but it's worth a try.</description></item><item><title>Re: Export multiple views to .MHT</title><link>https://www.infopathdev.com:443/forums/thread/11525.aspx</link><pubDate>Sat, 15 Apr 2006 04:31:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11525</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11525.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=11525</wfw:commentRss><description>From what I know, you cannot call SwitchView() twice in the same method.  You could probably do something really tricky with an OnAfterChange event, but otherwise I do not know what advice to give you.</description></item><item><title>Export multiple views to .MHT</title><link>https://www.infopathdev.com:443/forums/thread/11474.aspx</link><pubDate>Fri, 14 Apr 2006 16:56:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11474</guid><dc:creator>sjc724</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11474.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=11474</wfw:commentRss><description>I am trying to export 2 views to separate .MHT files.  I can export the first view, then I call 'View.SwitchView' and in the 'OnSwitchView' event I can then export the second view, but I can't seem to then switch back to the main view, I get the following error:&lt;br /&gt;&lt;br /&gt;'InfoPath cannot execute any view-related object model calls. The view is not ready.'&lt;br /&gt;&lt;br /&gt;Is there a way I can export a view without first call 'SwitchView'?  If not, is there a way to call 'SwitchView' several times in a row without getting this error?  &lt;br /&gt;&lt;br /&gt;Thanks!&lt;br /&gt;p.s. - I am doing this in a button OnClick event</description></item></channel></rss>