<?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: Print button in Custom Task Pane</title><link>https://www.infopathdev.com:443/forums/thread/64091.aspx</link><pubDate>Thu, 10 Feb 2011 15:01:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:64091</guid><dc:creator>Potemkine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/64091.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=64091</wfw:commentRss><description>&lt;p&gt;Hi, on 2010 conditionnal formatting has merge with rules so select your button click on &amp;quot;Managed rules&amp;quot;,&amp;nbsp; set a condition, and on rules types select formatting and disable or hide your control.&lt;/p&gt;</description></item><item><title>Re: Print button in Custom Task Pane</title><link>https://www.infopathdev.com:443/forums/thread/64089.aspx</link><pubDate>Thu, 10 Feb 2011 14:35:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:64089</guid><dc:creator>witakr</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/64089.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=64089</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi, thanks for the quick reply!&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;i&gt;Edit: I found the place i need to change the&amp;nbsp; coding language but it presents a new problem as I have some VB coding which I have to have. I can fix this if I can find a way to export my form to PDF written in c#. Here is the VB code I have to export to PDF:&lt;/i&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim fileName As String&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim nameNode As XPathNavigator&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nameNode = MainDataSource.CreateNavigator().SelectSingleNode(&amp;quot;/my:myFields/my:SONumber&amp;quot;, NamespaceManager)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fileName = nameNode.Value + &amp;quot;.pdf&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Me.CurrentView.Export(&amp;quot;C:\Documents and Settings\Patron.A-102\My Documents\BookingPacket\CompletedPackets\&amp;quot; + fileName, ExportFormat.Pdf) &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;strike&gt;&lt;i&gt;I looked around the code editor and&amp;nbsp; I am not seeing a place where I check that my coding language is set correctly.&lt;/i&gt;&lt;/strike&gt;&lt;/p&gt;&lt;p&gt;Also, I right clicked on the button and it doesn&amp;#39;t give me an option for conditional formatting &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I&amp;#39;m using InfoPath 2010 &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I looked under the Control Tools Properties tab and I don&amp;#39;t see anything there either.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Could you possibly elaborate a little for me? I don&amp;#39;t quite follow. &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thank you! &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Print button in Custom Task Pane</title><link>https://www.infopathdev.com:443/forums/thread/64068.aspx</link><pubDate>Thu, 10 Feb 2011 08:25:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:64068</guid><dc:creator>Potemkine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/64068.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=64068</wfw:commentRss><description>hi, for the &amp;quot;this.Print();&amp;quot; check that your coding langage is c# and not c#(compatible2003).For the &amp;quot;conditional formatting&amp;quot; right click on the button, select conditionnal formatting and and set some condition for instance if a field is blank you can hide or disabled your button.</description></item><item><title>Re: Print button in Custom Task Pane</title><link>https://www.infopathdev.com:443/forums/thread/64064.aspx</link><pubDate>Thu, 10 Feb 2011 01:08:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:64064</guid><dc:creator>witakr</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/64064.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=64064</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hello good folks...&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I am replying to this thread for a couple reasons...&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;When I first tried this solution mentioned above, it worked.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Now it&amp;#39;s not. When I tried to add the same line mentioned above for printing, the &amp;quot;this.Print();&amp;quot; line to the appropriate button but the code editor says that &amp;quot;this&amp;quot; is not declared.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Also, I am curious what kind of &amp;quot;conditional formatting&amp;quot; I would have to do to prevent printing or disable the print option is there is a field left blank &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Print button in Custom Task Pane</title><link>https://www.infopathdev.com:443/forums/thread/63452.aspx</link><pubDate>Mon, 24 Jan 2011 00:34:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:63452</guid><dc:creator>witakr</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/63452.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=63452</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;That&amp;#39;s going to work.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks! &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Print button in Custom Task Pane</title><link>https://www.infopathdev.com:443/forums/thread/63443.aspx</link><pubDate>Sat, 22 Jan 2011 16:01:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:63443</guid><dc:creator>Potemkine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/63443.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=63443</wfw:commentRss><description>Hi, I don&amp;#39;t know if it&amp;#39;s possible to do that from the task pane, and for printing all your views you can set &amp;quot;print multiple view&amp;quot; or create a view with all you differents views. On form options you can disable the print feature, so by default you can&amp;#39;t  print your form after that you add a button and add some code to print your form In c# coding it&amp;#39;s:
this.Print();
You can set some conditionnal formatting on your button to allow or not the print function.
Hope it&amp;#39;s helpfull.</description></item><item><title>Print button in Custom Task Pane</title><link>https://www.infopathdev.com:443/forums/thread/63442.aspx</link><pubDate>Sat, 22 Jan 2011 04:28:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:63442</guid><dc:creator>witakr</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/63442.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=63442</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hello folks!&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Would someone be so kind as to help me figure out how to add a button to a Custom Task Pane which will print all views? As well as having the print button I need it to be disabled or possibly throw an error message when the user tries to print a form that has required fields which are blank...???&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thank you so much in advance! This is a big issue that I need to figure out..&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The most important portion of this request for help is the disabled print option if the user fails to fill in all required fields. If having that ability means I can&amp;#39;t have the button in the Custom Task Pane then its a sacrifice I am able to make.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Also, i understand this my require some coding to intercept the onPrint command or something like that and I am more than willing and able to work with code. I have experience programming in PHP/HTML and some JavaScript, VB and C++&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks again!&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Jay &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>