<?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: print to PDF &amp; send as E-Mail... by vbscript?</title><link>https://www.infopathdev.com:443/forums/thread/24961.aspx</link><pubDate>Thu, 06 Dec 2007 14:25:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24961</guid><dc:creator>mhudsonjr</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24961.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=24961</wfw:commentRss><description>&lt;p&gt;I have found a solution to the faxing problem I have been having with InfoPath.&amp;nbsp; Here is what I am doing.&lt;/p&gt;&lt;p&gt;&amp;nbsp;I have made a separate Windows Application in C#, and I have a fully trusted form in InfoPath. I also installed drivers for a &amp;quot;Print to Tif&amp;quot;.&amp;nbsp; And I made a webservice that will store all my fax data into my SQL database.&lt;/p&gt;&lt;p&gt;On the print to tif you can specify where you want the file to be stored and you can also hide the window that comes open when it prints so that the user sees nothing.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;On my print View I have a Fax Button.&amp;nbsp; The first thing it does is submit to the webservice things like fax number that was inputted and who the fax will go to and things like that.&amp;nbsp; Then I run XDocument.PrintOut() to print my print view to a tif. file on the local computer(and as noted before I adjusted the settings so the user doesnt see anything when this happens).&amp;nbsp; Then I run that Fax App. from my Jscript Code and it grabs the tiff file that was just printed to a folder on my computer and sends it to the server to be faxed, or you can fax it directly from the local computer.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Just let me know if you have any questions on this.&amp;nbsp; Thanks&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: print to PDF &amp; send as E-Mail... by vbscript?</title><link>https://www.infopathdev.com:443/forums/thread/24703.aspx</link><pubDate>Mon, 26 Nov 2007 18:42:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24703</guid><dc:creator>mhudsonjr</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24703.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=24703</wfw:commentRss><description>&lt;p&gt;Thanks, not sure how i overlooked that one. haha.&lt;/p&gt;&lt;p&gt;But after looking into the print to pdf in code(JScript).&amp;nbsp; I stumbled upon an activeX control.&amp;nbsp; Not sure if this is what I am looking for but this is the line.&lt;/p&gt;&lt;p&gt;var factory = new ActiveXObject(&amp;quot;ScriptX.Factory&amp;quot;);&lt;/p&gt;&lt;p&gt;
    factory.printing.PrintPDF(&amp;quot;C:\\test.pdf&amp;quot;);
&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I get an error when it runs that says automation server cannot create object.&amp;nbsp; My form is fully trusted as well.&amp;nbsp; Not sure if this is what i am looking for.&amp;nbsp; &lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: print to PDF &amp; send as E-Mail... by vbscript?</title><link>https://www.infopathdev.com:443/forums/thread/24686.aspx</link><pubDate>Mon, 26 Nov 2007 14:39:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24686</guid><dc:creator>GLazkano</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24686.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=24686</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;mhudsonjr:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;/p&gt;&lt;p&gt;Can anyone tell me what is wrong with my syntax in this statement.&lt;/p&gt;&lt;p&gt;    XDocument.View.Export(&amp;quot;C:\\Progam Files\\FaxDocs\\test.pdf&amp;quot;, &amp;quot;PDF&amp;quot;);&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Hi, I think it fails because you type Progam instead Program. &lt;/p&gt;&lt;p&gt;Check it.&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: print to PDF &amp; send as E-Mail... by vbscript?</title><link>https://www.infopathdev.com:443/forums/thread/24685.aspx</link><pubDate>Mon, 26 Nov 2007 14:28:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24685</guid><dc:creator>mhudsonjr</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24685.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=24685</wfw:commentRss><description>&lt;p&gt;Due to page breaks and other issues with exporting, I am going to have to use a print to pdf instead of export to pdf.&amp;nbsp; I have a pdf printer installed, but I do not want the user to have to do anything to get it to print.&amp;nbsp; Example is that I do not want the users to have to select were they want it to save to or input the filename and hit save.&amp;nbsp; I want all this to be done in code.&amp;nbsp; I have seen some things on the web that leads me to believe this can be done by using an ActiveX control.&amp;nbsp; Does anyone have any information that could lead me to the right place or any examples?&amp;nbsp; Thanks&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: print to PDF &amp; send as E-Mail... by vbscript?</title><link>https://www.infopathdev.com:443/forums/thread/24680.aspx</link><pubDate>Mon, 26 Nov 2007 13:51:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24680</guid><dc:creator>mhudsonjr</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24680.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=24680</wfw:commentRss><description>&lt;p&gt;Can anyone tell me what is wrong with my syntax in this statement.&lt;/p&gt;&lt;p&gt;    XDocument.View.Export(&amp;quot;C:\\Progam Files\\FaxDocs\\test.pdf&amp;quot;, &amp;quot;PDF&amp;quot;);&amp;nbsp;
&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I am trying to export my view as a pdf , but when i run this code it gives an error:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Infopath cannot export the form.&amp;nbsp; The system cannot find the path specified.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I have created a FaxDocs folder to put the pdf in, but for some reason it cannot find the folder.&amp;nbsp; Thanks for your help.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: print to PDF &amp; send as E-Mail... by vbscript?</title><link>https://www.infopathdev.com:443/forums/thread/24593.aspx</link><pubDate>Wed, 21 Nov 2007 10:05:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24593</guid><dc:creator>GLazkano</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24593.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=24593</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;it&amp;#39;s my fault, my english is bad.&lt;/p&gt;&lt;p&gt;What I mean is that I have a taskbar in the right of the form. That taskbar, is only shown when the form is open. This is an image of the taskbar working with domain security:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;img src="http://img254.imageshack.us/img254/3782/workininfopathcx0.jpg" title="Form working" alt="Form working" height="558" width="985" /&gt;&lt;/p&gt;&lt;p&gt;But when I make the form full trust:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;img src="http://img101.imageshack.us/img101/7118/failininfopathli7.jpg" title="Form failing" alt="Form failing" height="821" width="987" /&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Do you understand me now?&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: print to PDF &amp; send as E-Mail... by vbscript?</title><link>https://www.infopathdev.com:443/forums/thread/24587.aspx</link><pubDate>Wed, 21 Nov 2007 02:40:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24587</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24587.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=24587</wfw:commentRss><description>&lt;p&gt;Great post on the Export logic!&lt;/p&gt;
&lt;p&gt;Sorry, but I don&amp;#39;t quite understand this sentence: &amp;quot;once I set the full trust for security, mi &amp;#39;view bar&amp;#39; (an html taskbar) shows code, is not &amp;#39;executing&amp;#39; the HTML code, it only shows that code&amp;quot;. &lt;/p&gt;
&lt;p&gt;Can you provide an image and more info on what you expect to happen and what you see happening?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;</description></item><item><title>Re: print to PDF &amp; send as E-Mail... by vbscript?</title><link>https://www.infopathdev.com:443/forums/thread/24570.aspx</link><pubDate>Tue, 20 Nov 2007 15:11:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24570</guid><dc:creator>GLazkano</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24570.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=24570</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi again,&lt;/p&gt;&lt;p&gt;it worked with this code:&lt;/p&gt;&lt;p&gt;XDocument.View.Export(&amp;quot;C:\\MyView.pdf&amp;quot;, &amp;quot;PDF&amp;quot;);&amp;#39;&lt;/p&gt;&lt;p&gt;The only I need now is configure CutePDF as default PDF printer because now the problem is that the Adobe Reader doesn&amp;#39;t show it with its size and page breaks.&lt;/p&gt;&lt;p&gt;&amp;nbsp;I suppose that uninstalling Adobe Reader and installing CutePDF will print it with the CutePDF instead Adobe Reader.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks for your help.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Update: Well, it works perfectly, but once I set the full trust for security, mi &amp;#39;view bar&amp;#39; (an html taskbar) shows code, is not &amp;#39;executing&amp;#39; the HTML code, it only shows that code. Am I the only person with that problem?&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: print to PDF &amp; send as E-Mail... by vbscript?</title><link>https://www.infopathdev.com:443/forums/thread/24567.aspx</link><pubDate>Tue, 20 Nov 2007 11:18:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24567</guid><dc:creator>GLazkano</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24567.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=24567</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;when I use that code, infopath can&amp;#39;t open my form. Can I use that code in VB? Is it necessary any plugin, library or something?&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: print to PDF &amp; send as E-Mail... by vbscript?</title><link>https://www.infopathdev.com:443/forums/thread/24566.aspx</link><pubDate>Tue, 20 Nov 2007 09:22:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24566</guid><dc:creator>GLazkano</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24566.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=24566</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi Patrick,&lt;/p&gt;&lt;p&gt;thanks for your help. I&amp;#39;ll try it as soon as posible.&lt;/p&gt;&lt;p&gt;I&amp;#39;ll post with the results.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks again!&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: print to PDF &amp; send as E-Mail... by vbscript?</title><link>https://www.infopathdev.com:443/forums/thread/24565.aspx</link><pubDate>Tue, 20 Nov 2007 09:02:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24565</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24565.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=24565</wfw:commentRss><description>&lt;p&gt;Hi Gorka,&lt;/p&gt;
&lt;p&gt;Michael Hudson has sent me the following code:&lt;/p&gt;
&lt;p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string FileName = &amp;quot;C:\\Documents and Settings\\mhudson.GCRC\\Desktop\\fax.pdf&amp;quot;;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FAXCOMLib.FaxServer faxServer = new FAXCOMLib.FaxServerClass();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; faxServer.Connect(Environment.MachineName);&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FAXCOMLib.FaxDoc faxDoc = (FAXCOMLib.FaxDoc)faxServer.CreateDocument(FileName);&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; faxDoc.RecipientName = cbRefDoc.Text;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; faxDoc.FaxNumber = &amp;quot;123456789&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; faxDoc.DisplayName = &amp;quot;Test Fax&amp;quot;;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //int Response = faxDoc.Send();&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; faxServer.Disconnect(); &lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;
&lt;p&gt;I assume this prints programmatically but uses the default printer. That was the problem he had. We are investigating a jscript workaround that will allow non-default printers to be selected.&lt;/p&gt;
&lt;p&gt;Cheers!&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;</description></item><item><title>Re: print to PDF &amp; send as E-Mail... by vbscript?</title><link>https://www.infopathdev.com:443/forums/thread/24540.aspx</link><pubDate>Mon, 19 Nov 2007 11:16:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24540</guid><dc:creator>GLazkano</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24540.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=24540</wfw:commentRss><description>&lt;p&gt;Hi Patrick,&lt;/p&gt;&lt;p&gt;thanks for your reply. I tried Cute PDF and it&amp;#39;s a nice solution to print Infopath forms as PDF, I will use it and recommend it.&lt;/p&gt;&lt;p&gt;But now the question is: is there any &amp;#39;standard&amp;#39; code to print as PDF programmatically, or will I need to develop my own code?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: print to PDF &amp; send as E-Mail... by vbscript?</title><link>https://www.infopathdev.com:443/forums/thread/24517.aspx</link><pubDate>Sat, 17 Nov 2007 06:08:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24517</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24517.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=24517</wfw:commentRss><description>&lt;p&gt;Hi Gorka,&lt;/p&gt;
&lt;p&gt;In order to programmatically print, you have to make the form Full Trust (since print requires level 3 security). That will mean either signing the template using a digital certificate or creating an MSI via regform (which disables autoupdate). Both will incur an IT cost. That&amp;#39;s why we don&amp;#39;t recommend Full Trust. However, for a small number of &amp;quot;admin&amp;quot; users, it&amp;#39;s not necessarily a bad option. &lt;/p&gt;
&lt;p&gt;Selecting the PDF option will require either a PDF printer - I use Cute PDF - or a PDF export tool. Since InfoPath has enabled importers and exporters, someone may have already created an Export to PDF option, but that wouldn&amp;#39;t enable printing. You&amp;#39;d have to write code to print as PDF. &lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Patrick&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: print to PDF &amp; send as E-Mail... by vbscript?</title><link>https://www.infopathdev.com:443/forums/thread/24502.aspx</link><pubDate>Fri, 16 Nov 2007 12:59:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24502</guid><dc:creator>GLazkano</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24502.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=24502</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi,&lt;/p&gt;&lt;p&gt;is there a way (maybe code) to automatically print a form to pdf from a button?&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: print to PDF &amp; send as E-Mail... by vbscript?</title><link>https://www.infopathdev.com:443/forums/thread/23779.aspx</link><pubDate>Wed, 17 Oct 2007 15:36:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:23779</guid><dc:creator>Shiraz Cupala</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/23779.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=23779</wfw:commentRss><description>&lt;p&gt;Hi, you can print to the file, but then it&amp;#39;s hard to actually get that file to attach to an email. For you scenario you will likely need to manually do the email step. The other option is to search for InfoPath PDF automation or such on Google to see if Adobe or someone else has the ability to output InfoPath forms to PDF automaticaly on the server. It may require saving your InfoPath XML to a database, creating a custom XSL to render the output (you can leverage your existing view XSL from InfoPath as a starting point) and then run that server side.&lt;/p&gt;</description></item></channel></rss>