<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: hide buttons</title><link>https://www.infopathdev.com:443/forums/thread/7777.aspx</link><pubDate>Sat, 01 Oct 2005 07:53:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7777</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7777.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7777</wfw:commentRss><description>I like the second option, but you don't need to attach code. Just define rules to print and then change a sentinel field's value and follow the rest of Matt's explanation. No code required!&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>Re: hide buttons</title><link>https://www.infopathdev.com:443/forums/thread/7776.aspx</link><pubDate>Fri, 30 Sep 2005 18:29:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7776</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7776.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7776</wfw:commentRss><description>Cleanest way to do it would be to make a new view. Make a "Print" view with everything arranged exactly how you want it (with or without buttons, etc.) and then when you are ready to print, change views and ctrl+P!&lt;br /&gt;&lt;br /&gt;Other than that, you could make a "Print!" button at the bottom and attach code to it. Then make a sentinel field in your DOM that when it holds a certain value all of your buttons disappear. On all the buttons you would do conditional formatting -&amp;gt; when sentinel_filed = "true" -&amp;gt; Hide this control. Then in the code of the Print button, set the sentinel field to true and call XDocument.Print().&lt;br /&gt;&lt;br /&gt;---------------&lt;br /&gt;Matt Faus&lt;br /&gt;</description></item><item><title>hide buttons</title><link>https://www.infopathdev.com:443/forums/thread/4948.aspx</link><pubDate>Fri, 30 Sep 2005 15:33:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4948</guid><dc:creator>netoec84</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4948.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=4948</wfw:commentRss><description>hello, I want hide buttons in the moment that the form is printed, is possible?&lt;br /&gt;&lt;br /&gt;thanks</description></item></channel></rss>