<?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: Export to pdf from FormControl in WinForms application</title><link>https://www.infopathdev.com:443/forums/thread/38447.aspx</link><pubDate>Mon, 16 Feb 2009 13:20:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:38447</guid><dc:creator>jb.mulder</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/38447.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=38447</wfw:commentRss><description>&lt;p&gt;I think i ound the problem. In my application the InfoPath View.Export method can only take a location string parameter with a maxumum lentgh of 32 characters (including path, filename and extension).&lt;/p&gt;&lt;p&gt;Does anyone have an idea about a 32 caharacter restriction??? &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Export to pdf from FormControl in WinForms application</title><link>https://www.infopathdev.com:443/forums/thread/38408.aspx</link><pubDate>Fri, 13 Feb 2009 15:31:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:38408</guid><dc:creator>jb.mulder</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/38408.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=38408</wfw:commentRss><description>&lt;p&gt;Hi, can anyone help me with the following.&lt;/p&gt;&lt;p&gt;I have a winforms application with a InfoPath 2007 FormControl to show and fill out a form.&lt;/p&gt;&lt;p&gt;The form contains no code. All is handled by the application. When calling the export_to_pdf function from within managed code (C#) I sometimes get the following exception &amp;quot;InfoPath cannot export the form. The parameter is incorrect&amp;quot;. Depending on the filedestination i present to the export function the exception does or does not occur. When suplying it with @&amp;quot;D:\[somedirectory]\[filename].pdf everything is ok, but when suplying the literal filestring of &amp;quot;MyDocuments&amp;quot; being: &amp;quot;\\\zkh\\[somedir]\\[somemachinename]\\[somesubdirname]\\[somefilename].pdf&amp;quot; ((sorry for the strange paths, securitymatters) the exception is thrown.&lt;/p&gt;&lt;p&gt;Anyone ideas?!?&amp;nbsp; &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>