<?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: open form prgrammatically from an open form- newbie</title><link>https://www.infopathdev.com:443/forums/thread/27789.aspx</link><pubDate>Tue, 08 Apr 2008 18:10:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:27789</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/27789.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=27789</wfw:commentRss><description>&lt;p&gt;Hi Susanne.&lt;/p&gt;
&lt;p&gt;My german is not so good to know the exact error message but I think you have to specify the template (.xsn file) and then specify the XML to open.&lt;/p&gt;
&lt;p&gt;I have not tried opening the xml directly in this way but is it supposed to use the local installed form as the template?&lt;/p&gt;
&lt;p&gt;I am assuming if you open it directly the form opens correctly.&lt;/p&gt;</description></item><item><title>open form prgrammatically from an open form- newbie</title><link>https://www.infopathdev.com:443/forums/thread/27782.aspx</link><pubDate>Tue, 08 Apr 2008 16:31:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:27782</guid><dc:creator>mohnsu</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/27782.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=27782</wfw:commentRss><description>&lt;p&gt;Hi &lt;/p&gt;
&lt;p&gt;I have a button with form code (vb) &lt;/p&gt;&lt;font size="2"&gt;
&lt;p&gt;Application.XmlForms.Open(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;a href="http://server/site/filename.xml"&gt;http://server/site/filename.xml&lt;/a&gt;&lt;/font&gt;&lt;font size="2"&gt;) &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;and get this error code &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;System.Runtime.InteropServices.COMException&lt;br /&gt;Die folgende Datei kann von InfoPath nicht geöffnet werden: &lt;a href="http://server/site/filename.xml"&gt;http://server/site/filename.xml&lt;/a&gt;&lt;font size="2"&gt;)&amp;nbsp;&lt;/font&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Office.Interop.InfoPath.SemiTrust.XDocumentsCollectionWrapper.Open(Object varURI, Int32 dwBehavior)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Office.InfoPath.Internal.XmlFormsHost.Open(String fileLocation, XmlFormOpenMode behavior)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Office.InfoPath.Internal.XmlFormsHost.Open(String fileLocation)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at ErfassungSchuldaten_V03_C_Bereiche.FormCode.btn_b1_oeffnen_Clicked(Object sender, ClickedEventArgs e)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Office.InfoPath.Internal.ButtonEventHost.OnButtonClick(DocActionEvent pEvent)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Office.Interop.InfoPath.SemiTrust._ButtonEventSink_SinkHelper.OnClick(DocActionEvent pEvent)&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;The form has full trust and certificate.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;Can somebody help me?&lt;/p&gt;
&lt;p&gt;thanks &lt;/p&gt;
&lt;p&gt;Susanne &amp;nbsp;&lt;/p&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;/font&gt;</description></item></channel></rss>