<?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: PrintOut() Question</title><link>https://www.infopathdev.com:443/forums/thread/32830.aspx</link><pubDate>Mon, 06 Oct 2008 09:21:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:32830</guid><dc:creator>feliks</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/32830.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=32830</wfw:commentRss><description>&lt;p&gt;In the object model&amp;nbsp;i found&amp;nbsp;no method&amp;nbsp;comparable with &amp;quot;PrintOut()&amp;quot;. &lt;/p&gt;
&lt;p&gt;Is there another useable solution for&amp;nbsp;realising a&amp;nbsp;&amp;quot;print&amp;quot;-button in 2007&amp;nbsp;by now ?&amp;nbsp; &lt;/p&gt;</description></item><item><title>Re: PrintOut() Question</title><link>https://www.infopathdev.com:443/forums/thread/22782.aspx</link><pubDate>Thu, 30 Aug 2007 07:37:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22782</guid><dc:creator>nukkumatti</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22782.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=22782</wfw:commentRss><description>Yes that could be the reason why nothing you try works :) . I haven&amp;#39;t worked with 2007 a lot myself but what usually helps is to just check the object model and you should find the method you need to do your printing. just keep in mind as mentioned before already your form needs to be in full trust mode.</description></item><item><title>Re: PrintOut() Question</title><link>https://www.infopathdev.com:443/forums/thread/22754.aspx</link><pubDate>Wed, 29 Aug 2007 17:15:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22754</guid><dc:creator>PCasagrande</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22754.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=22754</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;nukkumatti:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;my first guess would have been that you are using 2007 where thisXDocument doesn´t exist but xPathNavigator&lt;br /&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p&gt;I hadn&amp;#39;t realized this mattered.&amp;nbsp; Yes, actually I am using Infopath 2007.&amp;nbsp; Is that why nothing I try works?&amp;nbsp; It is possible that some one could tell me how to do it in 2007 or point me at a good reference?&lt;/p&gt;</description></item><item><title>Re: PrintOut() Question</title><link>https://www.infopathdev.com:443/forums/thread/22707.aspx</link><pubDate>Tue, 28 Aug 2007 20:53:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22707</guid><dc:creator>nukkumatti</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22707.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=22707</wfw:commentRss><description>my first guess would have been that you are using 2007 where thisXDocument doesn´t exist but xPathNavigator&lt;br /&gt;</description></item><item><title>Re: PrintOut() Question</title><link>https://www.infopathdev.com:443/forums/thread/22704.aspx</link><pubDate>Tue, 28 Aug 2007 18:56:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22704</guid><dc:creator>shaun.nieves</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22704.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=22704</wfw:commentRss><description>&lt;p&gt;Do you have this installed? &lt;a href="http://www.microsoft.com/downloads/details.aspx?familyid=7e9ebc57-e115-4cac-9986-a712e22879bb&amp;amp;displaylang=en"&gt;http://www.microsoft.com/downloads/details.aspx?familyid=7e9ebc57-e115-4cac-9986-a712e22879bb&amp;amp;displaylang=en&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;By default when you create a vs solution it creates &lt;font color="#0000ff" size="2"&gt;Private&lt;/font&gt;&lt;font size="2"&gt; thisXDocument &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;font size="2"&gt; XDocument by default. If you have it installed try adding it manually. Hope that helps..&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;Cheers!&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: PrintOut() Question</title><link>https://www.infopathdev.com:443/forums/thread/22703.aspx</link><pubDate>Tue, 28 Aug 2007 17:26:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22703</guid><dc:creator>PCasagrande</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22703.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=22703</wfw:commentRss><description>&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;Imports&lt;/font&gt;&lt;font size="2"&gt; Microsoft.Office.InfoPath&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Imports&lt;/font&gt;&lt;font size="2"&gt; System&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Imports&lt;/font&gt;&lt;font size="2"&gt; System.Xml&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Imports&lt;/font&gt;&lt;font size="2"&gt; System.Xml.XPath&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;Those are the name spaces I am importing.&amp;nbsp; It cannot find thisXDocument in any of them, nor have my guesses at what it is been fruitful.&amp;nbsp; I&amp;#39;m sorry to be asking such uninformed questions, but I am frustrated because printing should be one of the easiest things to do I would think.&amp;nbsp; As for the trust level, I had read earlier that I needed to do that, so that isn&amp;#39;t the issue.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;Any help is greatly appreciated.&lt;font size="2"&gt;&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: PrintOut() Question</title><link>https://www.infopathdev.com:443/forums/thread/22698.aspx</link><pubDate>Tue, 28 Aug 2007 16:17:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22698</guid><dc:creator>shaun.nieves</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22698.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=22698</wfw:commentRss><description>&lt;p&gt;First and foremost your form must be fully trusted for printing to work. thisXDocument.PrintOut() is what works so I&amp;#39;m not sure why it&amp;#39;s not being recognized. I would check to make sure you&amp;#39;re importing the right namespaces. Comment out your submit and see if that works. &lt;/p&gt;</description></item><item><title>PrintOut() Question</title><link>https://www.infopathdev.com:443/forums/thread/22695.aspx</link><pubDate>Tue, 28 Aug 2007 13:43:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22695</guid><dc:creator>PCasagrande</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22695.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=22695</wfw:commentRss><description>&lt;p&gt;Hi. I am extremely new to Infopath, so this question probably sounds pretty uninformed, but I have looked around and have not been able to get anything to work.&lt;/p&gt;
&lt;p&gt;What I am trying to do is to have a button that, when pressed, submits the form then prints it out.&amp;nbsp; I wrote a web service that accepts the form data, and processed it before my customers added this new requirement on.&amp;nbsp; I am doing the programming in VB and this is a Web Enabled Form.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;My Code:&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;Public&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Sub&lt;/font&gt;&lt;font size="2"&gt; CTRL84_5_Clicked(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;ByVal&lt;/font&gt;&lt;font size="2"&gt; sender &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Object&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;ByVal&lt;/font&gt;&lt;font size="2"&gt; e &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;font size="2"&gt; ClickedEventArgs)&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Me&lt;/font&gt;&lt;font size="2"&gt;.Submit()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sender.PrintOut()&lt;/font&gt;&lt;font size="2"&gt;&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;End&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Sub&lt;/p&gt;&lt;/font&gt;
&lt;p&gt;Neither of these lines of code work however, and I&amp;#39;m not sure what I should be doing.&amp;nbsp; I see every where people using thisXDocument.PrintOut(), but when I try that it does not recognize thisXDocument.&lt;/p&gt;
&lt;p&gt;Thank you in advance&lt;/p&gt;</description></item></channel></rss>