<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Printing with a button</title><link>https://www.infopathdev.com:443/forums/thread/31867.aspx</link><pubDate>Tue, 02 Sep 2008 09:32:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:31867</guid><dc:creator>Anuma</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/31867.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=31867</wfw:commentRss><description>&lt;p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;Hi, &lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;Please read the below given link.&lt;/font&gt;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&lt;/font&gt;&lt;/font&gt;&lt;a href="http://www.infopathdev.com/files/folders/misc/entry31650.aspx"&gt;&lt;font face="Times New Roman" size="3"&gt;http://www.infopathdev.com/files/folders/misc/entry31650.aspx&lt;/font&gt;&lt;/a&gt; 
&lt;p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&lt;/font&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;I&lt;/font&gt;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt; hope this will help you.&lt;/font&gt;&lt;/font&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Printing with a button</title><link>https://www.infopathdev.com:443/forums/thread/31865.aspx</link><pubDate>Tue, 02 Sep 2008 09:26:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:31865</guid><dc:creator>testuser</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/31865.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=31865</wfw:commentRss><description>&lt;p&gt;How can I change a form to a fully trusted form?&lt;/p&gt;</description></item><item><title>Re: Printing with a button</title><link>https://www.infopathdev.com:443/forums/thread/14007.aspx</link><pubDate>Tue, 15 Nov 2005 15:24:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14007</guid><dc:creator>franck</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14007.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14007</wfw:commentRss><description>Hi Jim,&lt;br /&gt;&lt;br /&gt;Then, what you are after is VBScript, not Visual Basic, right?&lt;br /&gt;In VBScript, it becomes: XDocument.Printout&lt;br /&gt;But, your form needs to be fully trusted....else, you will get a permission denied error message.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;&lt;br /&gt;Franck Dauché</description></item><item><title>Re: Printing with a button</title><link>https://www.infopathdev.com:443/forums/thread/14006.aspx</link><pubDate>Tue, 15 Nov 2005 15:04:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14006</guid><dc:creator>jim@jimhamby.com</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14006.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14006</wfw:commentRss><description>XDocument.View.SwitchView("MyViewName") works if I change it to XDocument it will not work as thisXDocument. The PrintOut part does not work no matter how I change the statement.</description></item><item><title>Re: Printing with a button</title><link>https://www.infopathdev.com:443/forums/thread/14005.aspx</link><pubDate>Tue, 15 Nov 2005 14:28:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14005</guid><dc:creator>franck</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14005.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14005</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;You can use code to do this:&lt;br /&gt;To Switch View:&lt;br /&gt;thisXDocument.View.SwitchView("MyViewName")&lt;br /&gt;To print:&lt;br /&gt;thisXDocument.PrintOut()&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;&lt;br /&gt;Franck Dauché</description></item><item><title>Printing with a button</title><link>https://www.infopathdev.com:443/forums/thread/12680.aspx</link><pubDate>Tue, 15 Nov 2005 13:27:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12680</guid><dc:creator>jim@jimhamby.com</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12680.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12680</wfw:commentRss><description>I am using Visual Basic to program the form. I have a row of buttons and I would like each one to print a different view then return to the main form. I can't get this working. Can anybody help with the VB code I'll switch to JavaScript if I need to, but I  don't want to.</description></item></channel></rss>