<?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: Getting Error when Trying to Open Form Programmatically</title><link>https://www.infopathdev.com:443/forums/thread/99596.aspx</link><pubDate>Wed, 15 Oct 2014 17:46:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:99596</guid><dc:creator>Douglas</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/99596.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=99596</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Try:&lt;/p&gt;using Microsoft.Office.InfoPath;&lt;br /&gt;using Microsoft.Office.Interop.InfoPath;&lt;br /&gt;using Microsoft.Office.Interop.InfoPath.Xml;</description></item><item><title>Re: Getting Error when Trying to Open Form Programmatically</title><link>https://www.infopathdev.com:443/forums/thread/33969.aspx</link><pubDate>Thu, 06 Nov 2008 23:38:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33969</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33969.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=33969</wfw:commentRss><description>&lt;p&gt;this.Application.XmlForms.Open(&lt;em&gt;filename&lt;/em&gt;) also works for me without adding any &lt;em&gt;using&lt;/em&gt; statements.&lt;/p&gt;
&lt;p&gt;Application.Xdocuments doesn&amp;#39;t exist in forms with the 2007 object model.&lt;/p&gt;</description></item><item><title>Re: Getting Error when Trying to Open Form Programmatically</title><link>https://www.infopathdev.com:443/forums/thread/33949.aspx</link><pubDate>Thu, 06 Nov 2008 16:51:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33949</guid><dc:creator>Anuma</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33949.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=33949</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I have tried to open a form with below code in infopath2007 and it is worked for me.&lt;/p&gt;
&lt;p&gt;this.Application.XmlForms.Open(templatefilename);&amp;nbsp;&amp;nbsp; &lt;/p&gt;</description></item><item><title>Getting Error when Trying to Open Form Programmatically</title><link>https://www.infopathdev.com:443/forums/thread/33948.aspx</link><pubDate>Thu, 06 Nov 2008 16:38:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33948</guid><dc:creator>chrisf</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33948.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=33948</wfw:commentRss><description>&lt;p&gt;In the clicked event for a button in an InfoPath 2007 template, I have added code that is attempting to open an infopath form with this statement using C#:&lt;br /&gt;This.Application.Xdocuments.Open(tempFileName); Also tried, This.Application.XmlForms.Open(tempFileName);&lt;/p&gt;
&lt;p&gt;But I am getting this error: &lt;br /&gt;Microsoft.Office.Infopath.Application does not contain a definition for xdocuments.&lt;/p&gt;
&lt;p&gt;The following using statements are included:&lt;br /&gt;using Microsoft.Office.InfoPath;&lt;br /&gt;using System;&lt;br /&gt;using System.Xml;&lt;br /&gt;using System.Xml.XPath;&lt;br /&gt;using System.IO;&lt;br /&gt;using System.Text;&lt;/p&gt;
&lt;p&gt;What am I missing?&lt;/p&gt;</description></item></channel></rss>