<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Example Code for OnClick Print Button</title><link>https://www.infopathdev.com:443/forums/thread/3707.aspx</link><pubDate>Wed, 20 Dec 2006 10:18:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3707</guid><dc:creator>FordFiestaST150</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3707.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3707</wfw:commentRss><description>Cancel that - I just got it to work.&lt;br /&gt;&lt;br /&gt;Thanks for all your help Shiva</description></item><item><title>Re: Example Code for OnClick Print Button</title><link>https://www.infopathdev.com:443/forums/thread/3706.aspx</link><pubDate>Wed, 20 Dec 2006 10:04:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3706</guid><dc:creator>FordFiestaST150</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3706.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3706</wfw:commentRss><description>sorry but I am still having problems either understanding what you just wrote or a complete ID10t</description></item><item><title>Re: Example Code for OnClick Print Button</title><link>https://www.infopathdev.com:443/forums/thread/3705.aspx</link><pubDate>Wed, 20 Dec 2006 09:21:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3705</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3705.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3705</wfw:commentRss><description>Hi Ford,&lt;br /&gt;&lt;br /&gt;You can write the below code for print in OnClick event,&lt;br /&gt;&lt;br /&gt;XDocument.PrintOut(); &lt;br /&gt;</description></item><item><title>Re: Example Code for OnClick Print Button</title><link>https://www.infopathdev.com:443/forums/thread/3704.aspx</link><pubDate>Wed, 20 Dec 2006 08:19:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3704</guid><dc:creator>FordFiestaST150</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3704.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3704</wfw:commentRss><description>Shiva&lt;br /&gt;&lt;br /&gt;I am receiving a runtime error in the following script.  Please help&lt;br /&gt;"//=======&lt;br /&gt;// The following function handler is created by Microsoft Office InfoPath.&lt;br /&gt;// Do not modify the name of the function, or the name and number of arguments.&lt;br /&gt;//=======&lt;br /&gt;function CTRL1_5::OnClick(eventObj)&lt;br /&gt;{&lt;br /&gt;XOwnerMemberBenefits.PrintOut();&lt;br /&gt;}"&lt;br /&gt;</description></item><item><title>Re: Example Code for OnClick Print Button</title><link>https://www.infopathdev.com:443/forums/thread/3703.aspx</link><pubDate>Wed, 20 Dec 2006 07:49:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3703</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3703.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3703</wfw:commentRss><description>Hi Ford,&lt;br /&gt;&lt;br /&gt;No, You can publish it into your local machine also and try it once.</description></item><item><title>Re: Example Code for OnClick Print Button</title><link>https://www.infopathdev.com:443/forums/thread/3702.aspx</link><pubDate>Wed, 20 Dec 2006 07:36:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3702</guid><dc:creator>FordFiestaST150</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3702.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3702</wfw:commentRss><description>Hi Silva&lt;br /&gt;&lt;br /&gt;Apologies for being such a nag, completely new at this and appreciating your patience and assistance.  One last question ....&lt;br /&gt;How and where do I publish the solution to sharepoint and it is necessary to have Office Sharepoint Server installed on my system?&lt;br /&gt;</description></item><item><title>Re: Example Code for OnClick Print Button</title><link>https://www.infopathdev.com:443/forums/thread/3701.aspx</link><pubDate>Wed, 20 Dec 2006 07:32:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3701</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3701.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3701</wfw:commentRss><description>Hi Ford again,&lt;br /&gt;&lt;br /&gt;Follow the below steps to give full trust permissions,&lt;br /&gt;1. Go to Tools -&amp;gt; form Options&lt;br /&gt;2. Open the security Tab&lt;br /&gt;3. Unselect the checkbox at "Automatically determine security level ...."&lt;br /&gt;4. Select Full trust radio button&lt;br /&gt;5. Check "Sign this Form" checkbox&lt;br /&gt;6. Click on Create certificate -&amp;gt; this creates a personal certificate.&lt;br /&gt;7. Now click on Ok and then publish the solution to Sharepoint&lt;br /&gt;&lt;br /&gt;When the solution user opens the form from sharepoint they get a dialog box, in which they have a details button. On clicking of this button they can install the certificate. After installing certificate close and open the InfoPath form again to start using it.</description></item><item><title>Re: Example Code for OnClick Print Button</title><link>https://www.infopathdev.com:443/forums/thread/3700.aspx</link><pubDate>Wed, 20 Dec 2006 07:24:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3700</guid><dc:creator>FordFiestaST150</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3700.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3700</wfw:commentRss><description>Hi Shiva&lt;br /&gt;&lt;br /&gt;How do I go about entrusting my forms fully?</description></item><item><title>Re: Example Code for OnClick Print Button</title><link>https://www.infopathdev.com:443/forums/thread/3699.aspx</link><pubDate>Wed, 20 Dec 2006 06:45:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3699</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3699.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3699</wfw:commentRss><description>Hi Ford,&lt;br /&gt;&lt;br /&gt;Try XDocument.PrintOut(); &lt;br /&gt;&lt;br /&gt;Note: It can be accessed only by fully trusted forms.</description></item><item><title>Example Code for OnClick Print Button</title><link>https://www.infopathdev.com:443/forums/thread/1748.aspx</link><pubDate>Wed, 20 Dec 2006 06:16:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:1748</guid><dc:creator>FordFiestaST150</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/1748.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=1748</wfw:commentRss><description>Print button placed on form, double-click and selected Edit Form Code.  Microsoft Script Editor opens and requires code to print on click with js coding.&lt;br /&gt;&lt;br /&gt;This is what I see at the moment:&lt;br /&gt;&lt;br /&gt;"// The following line is created by Microsoft Office InfoPath to define the prefixes&lt;br /&gt;// for all the known namespaces in the main XML data file.&lt;br /&gt;// Any modification to the form files made outside of InfoPath&lt;br /&gt;// will not be automatically updated.&lt;br /&gt;//&amp;lt;namespacesDefinition&amp;gt;&lt;br /&gt;XDocument.DOM.setProperty("SelectionNamespaces", 'xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2006-12-19T13:12:04"');&lt;br /&gt;//&amp;lt;/namespacesDefinition&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;//=======&lt;br /&gt;// The following function handler is created by Microsoft Office InfoPath.&lt;br /&gt;// Do not modify the name of the function, or the name and number of arguments.&lt;br /&gt;//=======&lt;br /&gt;function CTRL1_5::OnClick(eventObj)&lt;br /&gt;{&lt;br /&gt;//write your code here&lt;br /&gt;}"&lt;br /&gt;&lt;br /&gt;What code do I put in there enabling user to print the form when selecting the print button?</description></item></channel></rss>