<?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: InfoPath 2010 FormControl Export to PDF and others does not work</title><link>https://www.infopathdev.com:443/forums/thread/82020.aspx</link><pubDate>Mon, 27 Aug 2012 22:29:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:82020</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/82020.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=82020</wfw:commentRss><description>&lt;p&gt;Hi PDJoubil,&lt;/p&gt;&lt;p&gt;The CurrentView.Export method is still valid for IP 2010 object model but it does require full trust. Is your form full trust? However, &amp;quot;no such interface&amp;quot; supported suggests that maybe you changed accidentally to a browser form.&lt;/p&gt;</description></item><item><title>InfoPath 2010 FormControl Export to PDF and others does not work</title><link>https://www.infopathdev.com:443/forums/thread/81827.aspx</link><pubDate>Mon, 20 Aug 2012 20:36:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:81827</guid><dc:creator>pdjoubil</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/81827.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=81827</wfw:commentRss><description>&lt;p&gt;With InfoPath 2007, the following line of code used to work fine when you use the Microsoft.Office.InfoPath.FormControl control in a C# Windows Form application.&lt;/p&gt;
&lt;p&gt;&lt;font size="2" face="Consolas"&gt;&lt;font size="2" face="Consolas"&gt;formControl1.XmlForm.CurrentView.Export(path, Microsoft.Office.InfoPath.&lt;/font&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2" face="Consolas"&gt;&lt;font color="#2b91af" size="2" face="Consolas"&gt;&lt;font color="#2b91af" size="2" face="Consolas"&gt;ExportFormat&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2" face="Consolas"&gt;&lt;font size="2" face="Consolas"&gt;.Pdf);&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2" face="Consolas"&gt;&lt;font size="2" face="Consolas"&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2" face="Consolas"&gt;&lt;font size="2" face="Consolas"&gt;When you try to use the same line of code in InfoPath 2010, you get the error message:&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2" face="Consolas"&gt;&lt;font size="2" face="Consolas"&gt;&amp;quot;&lt;strong&gt;InfoPath has encountered an error. The operation failed. InfoPath cannot export the form. No such interface supported&lt;/strong&gt;&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2" face="Consolas"&gt;&lt;font size="2" face="Consolas"&gt;Has anyone figured out a way around this error? Or has anyone figured out a new to export to PDF from this control?&lt;br /&gt;﻿﻿I&amp;#39;d be glad to hear from anyone to see how you implement this functionality now that it does not work in 2010.&lt;/font&gt;&lt;/font&gt;&lt;font size="2" face="Consolas"&gt;&lt;font size="2" face="Consolas"&gt;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;</description></item></channel></rss>