<?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: Use submit button to save xml and export pdf to the same location</title><link>https://www.infopathdev.com:443/forums/thread/49498.aspx</link><pubDate>Mon, 30 Nov 2009 05:00:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49498</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49498.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=49498</wfw:commentRss><description>&lt;p&gt;Hi Dev Ann&lt;/p&gt;
&lt;p&gt;You will need to mark your form as full trust to programmatically save and print. Use the OnSaveAs event to capture the save and programmatically call the Print method in the object model to print. Before doing that you&amp;#39;ll want to select a PDF printer and specify where to send it (print properties, I&amp;#39;m guessing). All of this can be done with a full trust form and code, but it&amp;#39;s not easy and certainly not something that someone is going to show you how to do in a forum post. &lt;/p&gt;
&lt;p&gt;Cheers!&lt;/p&gt;</description></item><item><title>Use submit button to save xml and export pdf to the same location</title><link>https://www.infopathdev.com:443/forums/thread/49428.aspx</link><pubDate>Wed, 25 Nov 2009 20:24:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49428</guid><dc:creator>DevAnn</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49428.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=49428</wfw:commentRss><description>&lt;p&gt;Hope there is someone who can help this newbie to infopath custom code writing.&lt;/p&gt;
&lt;p&gt;I want to use the default Submit button to&lt;br /&gt;a)&amp;nbsp; open a SAVE AS dialog box so the user can naviagate to a specific folder&amp;nbsp;&amp;nbsp; &lt;br /&gt;b)&amp;nbsp;&amp;nbsp;store the folder location as defined by user in step a&amp;nbsp; and then &lt;br /&gt;c) export the form to a pdf and drop in the same folder&lt;br /&gt;d) close the form&lt;/p&gt;
&lt;p&gt;I know I have to write custom code. And I have been trying to write something in VSTA (vb).&lt;/p&gt;
&lt;p&gt;I have looked everywhere&amp;nbsp;online and nothing is working.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks in advance for your help.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>