<?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>InfoPath 2010</title><link>https://www.infopathdev.com:443/forums/142.aspx</link><description>Are you exploring new features coming up in 2010? Share information and ask questions here!</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Switching Views without Code</title><link>https://www.infopathdev.com:443/forums/thread/80319.aspx</link><pubDate>Sun, 08 Jul 2012 21:14:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:80319</guid><dc:creator>aberya</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/80319.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=80319</wfw:commentRss><description>&lt;p&gt;Yes you were right, we discovered that the&amp;nbsp;read only view didn&amp;#39;t have a print view set.&lt;/p&gt;&lt;p&gt;Thanks for your help.&lt;/p&gt;</description></item><item><title>Re: Switching Views without Code</title><link>https://www.infopathdev.com:443/forums/thread/80289.aspx</link><pubDate>Fri, 06 Jul 2012 22:22:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:80289</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/80289.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=80289</wfw:commentRss><description>&lt;p&gt;Well, to directly answer your first question - no, you need code to know what view the form is on.&lt;/p&gt;
&lt;p&gt;I am puzzled by the print preview behavior you are describing - opening print preview is re-executing your form load rules? Or is it that the Read Only view doesn&amp;#39;t have a print view? Or perhaps something else is preventing the print view from opening?&lt;/p&gt;</description></item><item><title>Switching Views without Code</title><link>https://www.infopathdev.com:443/forums/thread/80256.aspx</link><pubDate>Thu, 05 Jul 2012 21:21:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:80256</guid><dc:creator>aberya</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/80256.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=80256</wfw:commentRss><description>&lt;p&gt;Hi there&lt;/p&gt;&lt;p&gt;&amp;nbsp;Just wondering if anyone knows if it is possible to write an expression or formula to detect the current view of an InfoPath form, without running code behind?&lt;/p&gt;&lt;p&gt;I have built an infopath form that has three views, Writable, Read Only and Print Views.&amp;nbsp; In the form is a Read Only flag in the schema and we use this control if the form is Read Only or Writeable.&amp;nbsp; We have added a Rule when the form is opened to switch the view to the ReadOnly view when ever the Read Only flag is set.&amp;nbsp; However this has the side effect that when the Print Preview button is clicked in Form Services the Form Load rules execute and if the Read Only flag is set it displays the Read Only view, not the Print View.&amp;nbsp;&lt;/p&gt;&lt;p&gt;The form load rule is basically &amp;quot;If ReadOnly = 1 then Switch View to ReadOnly&amp;quot; so I think I need to get rid of that rule or be able to detect that the form is trying to print.&lt;/p&gt;&lt;p&gt;Does anyone have any suggestions on how to resolve this issue?&lt;/p&gt;&lt;p&gt;Cheers&lt;/p&gt;&lt;p&gt;Alan&lt;/p&gt;</description></item></channel></rss>