<?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: How do I launch an InfoPath form from inside C# Web Service...</title><link>https://www.infopathdev.com:443/forums/thread/58625.aspx</link><pubDate>Fri, 03 Sep 2010 06:03:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:58625</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/58625.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=58625</wfw:commentRss><description>&lt;p&gt;Hi CJordan,&lt;/p&gt;
&lt;p&gt;Web services typically run on Web servers, so launching InfoPath makes no sense at all since the server computer typically does not have Office installed.&lt;/p&gt;
&lt;p&gt;If you are running the Web service locally on a client machine, you can launch it via InfoPath directly using the New From Solution action in an InfoPath rule. &lt;/p&gt;
&lt;p&gt;Sorry to rain on your coding parade but your design pattern makes no sense.&lt;/p&gt;
&lt;p&gt;Good luck!&lt;/p&gt;</description></item><item><title>How do I launch an InfoPath form from inside C# Web Service...</title><link>https://www.infopathdev.com:443/forums/thread/58615.aspx</link><pubDate>Thu, 02 Sep 2010 21:53:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:58615</guid><dc:creator>cjordan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/58615.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=58615</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I&amp;#39;m currently trying to launch a blank form&amp;nbsp;based on&amp;nbsp;a&amp;nbsp;.xsn file&amp;nbsp;from with a C# web service and I was wondering if anybody would know the proper way to do this. I was assuming it would be something like the following after reading the Microsoft documentation:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&amp;nbsp;ExternalApplication infoPath = &lt;span style="COLOR:blue;"&gt;new&lt;/span&gt; ExternalApplicationClass();&lt;br /&gt;&lt;span style="COLOR:green;"&gt;// Open an InfoPath form.&lt;/span&gt;&lt;br /&gt;infoPath.Open(&lt;span style="COLOR:#a31515;"&gt;@&amp;quot;C:\My Forms\Form.xsn&amp;quot;&lt;/span&gt;, 1);&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&amp;nbsp;I get an error in Visual Studio: Interop type &amp;#39;Microsoft.Office.Interop.InfoPath.ExternalApplicationClass&amp;#39; cannot be embedded. Use the applicable interface instead.&amp;nbsp;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Could anyone here&amp;nbsp;provide guidance on how to do this? It would be MUCH appreciated.&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>