<?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: How do you print a "print view" with code?</title><link>https://www.infopathdev.com:443/forums/thread/54611.aspx</link><pubDate>Thu, 06 May 2010 17:01:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54611</guid><dc:creator>bryanstrader</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54611.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=54611</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m working with 2007, and am not seeing some of the methods they are mentioning. The only thing I&amp;#39;ve been able to find is this.Print(), which allows you to pass a bool parameter to determine whether or not to show the print dialog.&lt;/p&gt;
&lt;p&gt;This would work great if I was printing the whole form. My typicall print settings is to print multiple views.&amp;nbsp; I want to do this with code...&amp;nbsp;&lt;/p&gt;
&lt;p&gt;if (thisCondition) &lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;this&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.ViewInfos[0].print():&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;else&lt;/font&gt;&lt;/p&gt;&lt;font size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;this&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.ViewInfos[1].print():&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;}&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;</description></item><item><title>Re: How do you print a "print view" with code?</title><link>https://www.infopathdev.com:443/forums/thread/54574.aspx</link><pubDate>Thu, 06 May 2010 06:44:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54574</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54574.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=54574</wfw:commentRss><description>&lt;p&gt;check &lt;a href="http://www.infopathdev.com/forums/p/533/1252.aspx"&gt;this&lt;/a&gt;&lt;/p&gt;</description></item><item><title>How do you print a "print view" with code?</title><link>https://www.infopathdev.com:443/forums/thread/54551.aspx</link><pubDate>Wed, 05 May 2010 18:11:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54551</guid><dc:creator>bryanstrader</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54551.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=54551</wfw:commentRss><description>I want to create two buttons on a view. One will print all my print views, the other will print only a few of my print views. This means I need the ability to code which views will print.

Can anyone help me on this please?

Thanks in advance!</description></item></channel></rss>