<?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: Creating a 'Print' Button or printing on submit</title><link>https://www.infopathdev.com:443/forums/thread/76943.aspx</link><pubDate>Wed, 28 Mar 2012 19:00:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:76943</guid><dc:creator>NWFTC</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/76943.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=76943</wfw:commentRss><description>&lt;p&gt;HI Nagesh&lt;/p&gt;&lt;p&gt;Seen your text on print button but i have no idea how to put code into a button, can you tell me how&lt;/p&gt;</description></item><item><title>Re: Creating a 'Print' Button or printing on submit</title><link>https://www.infopathdev.com:443/forums/thread/60563.aspx</link><pubDate>Thu, 21 Oct 2010 10:37:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60563</guid><dc:creator>rahulbabar</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60563.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=60563</wfw:commentRss><description>&lt;p&gt;Hi All, &lt;/p&gt;
&lt;p&gt;Can we achieve without code (at least without form behind code)? &lt;/p&gt;
&lt;p&gt;Can&amp;#39;t we&amp;nbsp;configure some rules or write javascript to achieve this?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Rahul Babar&lt;/p&gt;</description></item><item><title>Re: Creating a 'Print' Button or printing on submit</title><link>https://www.infopathdev.com:443/forums/thread/57788.aspx</link><pubDate>Mon, 09 Aug 2010 11:06:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:57788</guid><dc:creator>Tugce Konuklar</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/57788.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=57788</wfw:commentRss><description>Hi,

Could you tell me please, how can ı reach code behind of button, which i put on the sharePoint list or form of InfoPath? 

thank you :)</description></item><item><title>Re: Creating a 'Print' Button or printing on submit</title><link>https://www.infopathdev.com:443/forums/thread/37577.aspx</link><pubDate>Fri, 23 Jan 2009 11:00:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:37577</guid><dc:creator>NewtoThisWorld</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/37577.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=37577</wfw:commentRss><description>Dim msg As String
            Dim title As String
            Dim style As Microsoft.VisualBasic.MsgBoxStyle
            Dim response As Microsoft.VisualBasic.MsgBoxResult
            msg = &amp;quot;Print this Document &amp;quot;
            style = Microsoft.VisualBasic.MsgBoxStyle.DefaultButton1 Or Microsoft.VisualBasic.MsgBoxStyle.OkOnly
            title = &amp;quot;Print Document&amp;quot;
            response = Microsoft.VisualBasic.MsgBox(msg, style, title)

            If response = Microsoft.VisualBasic.MsgBoxResult.Yes Then
                Me.Print()
            End If

this is the code used to print the infopath form with a information to the user.
i think it may help others. 
thank you</description></item><item><title>Re: Creating a 'Print' Button or printing on submit</title><link>https://www.infopathdev.com:443/forums/thread/32559.aspx</link><pubDate>Fri, 26 Sep 2008 01:16:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:32559</guid><dc:creator>phamj</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/32559.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=32559</wfw:commentRss><description>&lt;p&gt;5)	A dialog will be displayed asking you to save that file with an extension “mdi”.&lt;br /&gt;6)	Click on save and you will see the print preview of that form.&lt;br /&gt;7)	You can now do whatever you want regarding printing.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The steps 5-7 did not appear for me. Though the form printed successfully. &amp;nbsp;&lt;/p&gt;&lt;p&gt;I would like a print preview button just like the one on top of the toolbar but however on the form instead.&amp;nbsp; Help?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Creating a 'Print' Button or printing on submit</title><link>https://www.infopathdev.com:443/forums/thread/8667.aspx</link><pubDate>Tue, 03 Jan 2006 12:12:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8667</guid><dc:creator>julie-mids</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8667.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8667</wfw:commentRss><description>&lt;br /&gt;Nagesh, you are Wonderful... It Works!   Many Thanks x&lt;br /&gt;&lt;br /&gt;For anyone else needing this, you need to give the form full trust first by selecting the Form Option tab under the tools menu. Select Full Trust under the security tab and then use the 'create certificate' to give yourself a digital signature.&lt;br /&gt;&lt;br /&gt;Right, now on to my next question lol ..will go do a search first though ;-)</description></item><item><title>Re: Creating a 'Print' Button or printing on submit</title><link>https://www.infopathdev.com:443/forums/thread/8666.aspx</link><pubDate>Tue, 03 Jan 2006 11:29:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8666</guid><dc:creator>Nagesh</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8666.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8666</wfw:commentRss><description>Hi julie,&lt;br /&gt;&lt;br /&gt;You please put &amp;quot;XDocument&amp;quot; in place of &amp;quot;thisXDocument&amp;quot; in that button code and follow the same process.&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;&lt;br /&gt;Nagesh&lt;br /&gt;InfoPath Dev India</description></item><item><title>Re: Creating a 'Print' Button or printing on submit</title><link>https://www.infopathdev.com:443/forums/thread/8665.aspx</link><pubDate>Tue, 03 Jan 2006 11:19:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8665</guid><dc:creator>julie-mids</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8665.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8665</wfw:commentRss><description>Hia Nagesh,&lt;br /&gt;&lt;br /&gt;When I paste that code into the Rules Code of the button I get the following error:&lt;br /&gt;&lt;br /&gt;&amp;#39;thisXDocument&amp;#39; is undefined&lt;br /&gt;File:script.js&lt;br /&gt;Line:718&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Is there some way this code should be inserted (ie: with some syntaxes before or after it)?  I have literally just pasted that in the code as it stands.</description></item><item><title>Re: Creating a 'Print' Button or printing on submit</title><link>https://www.infopathdev.com:443/forums/thread/8664.aspx</link><pubDate>Tue, 03 Jan 2006 11:00:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8664</guid><dc:creator>Nagesh</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8664.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8664</wfw:commentRss><description>Hi Julie-mids,&lt;br /&gt;&lt;br /&gt;You can follow these steps for that,&lt;br /&gt;&lt;br /&gt;1)	Paste  “thisXDocument.PrintOut()” under the code of Print button you placed.&lt;br /&gt;2)	Give full trust to your form and sign it.&lt;br /&gt;3)	Now publish the form either to sharepoint or localdirectory.&lt;br /&gt;4)	Open the published form and click that Print button .&lt;br /&gt;5)	A dialog will be displayed asking you to save that file with an extension “mdi”.&lt;br /&gt;6)	Click on save and you will see the print preview of that form.&lt;br /&gt;7)	You can now do whatever you want regarding printing.&lt;br /&gt;&lt;br /&gt;I think this would work for you,&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;&lt;br /&gt;Nagesh&lt;br /&gt;InfoPath Dev India</description></item><item><title>Creating a 'Print' Button or printing on submit</title><link>https://www.infopathdev.com:443/forums/thread/5235.aspx</link><pubDate>Tue, 03 Jan 2006 10:10:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5235</guid><dc:creator>julie-mids</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5235.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5235</wfw:commentRss><description>&lt;br /&gt;Is it possible to insert a button (like a submit one) but get it to print on pressing it as opposed to submitting to the database (sharepoint in my case).&lt;br /&gt;&lt;br /&gt;I found a similar thread where somone wanted to print after it was submitted which would also be an option.&lt;br /&gt;&lt;br /&gt;On this post the following code was suggested but what do I do with it and where would I put it?&lt;br /&gt;&lt;br /&gt;thisXDocument.PrintOut();&lt;br /&gt;&lt;br /&gt;I tried just creating a button and pasting this code in to rules code but it doesn't do anything, is there a special way the above is supposed to be implemented?  (am using JS btw).&lt;br /&gt;&lt;br /&gt;Thanks!  &lt;br /&gt;&lt;br /&gt;My form is now doing everything I want it to and this is the last hurdle before I can start using it live.&lt;br /&gt;</description></item></channel></rss>