<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: How to switch view in code?</title><link>https://www.infopathdev.com:443/forums/thread/21901.aspx</link><pubDate>Mon, 23 Jul 2007 18:52:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:21901</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/21901.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=21901</wfw:commentRss><description>Whatever you used in your conditional formatting to hide the button (I&amp;#39;m assuming just some field value set to true) just reverse that after the mail is done: set the field value to false. The conditional formatting will unhide the button.</description></item><item><title>Re: How to switch view in code?</title><link>https://www.infopathdev.com:443/forums/thread/21899.aspx</link><pubDate>Mon, 23 Jul 2007 17:11:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:21899</guid><dc:creator>Taffman</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/21899.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=21899</wfw:commentRss><description>That worked, although I&amp;#39;m not sure how I unhide the button again after emailing. Many thanks/</description></item><item><title>Re: How to switch view in code?</title><link>https://www.infopathdev.com:443/forums/thread/21898.aspx</link><pubDate>Mon, 23 Jul 2007 16:53:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:21898</guid><dc:creator>Taffman</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/21898.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=21898</wfw:commentRss><description>Wasn&amp;#39;t sure if this method would hide the button from the email body but it&amp;#39;s worth a try, thanks.</description></item><item><title>Re: How to switch view in code?</title><link>https://www.infopathdev.com:443/forums/thread/21897.aspx</link><pubDate>Mon, 23 Jul 2007 16:34:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:21897</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/21897.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=21897</wfw:commentRss><description>&lt;p&gt;Maybe you can place some conditional formatting on the button to hide it when a value is true.&lt;/p&gt;&lt;p&gt;Then set the value to true (whatever field you set up to hold this value), do your normal print stuff, and then set the value back to false so the button appears again.&lt;/p&gt;&lt;p&gt;Not sure if that will work in your scenario, but worth a try.&lt;/p&gt;</description></item><item><title>How to switch view in code?</title><link>https://www.infopathdev.com:443/forums/thread/21882.aspx</link><pubDate>Mon, 23 Jul 2007 12:20:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:21882</guid><dc:creator>Taffman</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/21882.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=21882</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m using the code in &lt;a href="http://www.infopathdev.com/forums/thread/4494.aspx"&gt;http://www.infopathdev.com/forums/thread/4494.aspx&lt;/a&gt;&amp;nbsp;to email a view which works fine. The problem I have is that the button I use to execute this code is on the same page therefore it appears in the body of the email.&lt;/p&gt;&lt;p&gt;&amp;nbsp;I&amp;#39;d like to store the email button on another view, then switch to the Print View before the email code is executed to avoid having the button appear on the print view. Anyone have any idea on how I do this please?&lt;/p&gt;</description></item></channel></rss>