<?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 a document with C#</title><link>https://www.infopathdev.com:443/forums/thread/55849.aspx</link><pubDate>Mon, 14 Jun 2010 16:01:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:55849</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/55849.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=55849</wfw:commentRss><description>&lt;p&gt;Check out &lt;a href="http://grouplab.cpsc.ucalgary.ca/cookbook/index.php/VisualStudio/HowToUseWindowsMediaPlayerToPlayAudioAndVideo"&gt;this&lt;/a&gt;, it looks like it may have enough info to get you started... have fun!&lt;/p&gt;</description></item><item><title>Re: open a document with C#</title><link>https://www.infopathdev.com:443/forums/thread/55832.aspx</link><pubDate>Sun, 13 Jun 2010 06:41:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:55832</guid><dc:creator>Lawson</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/55832.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=55832</wfw:commentRss><description>&lt;p&gt;Hey hilary, this is great.&amp;nbsp;You&amp;#39;re awesome 8^ )&lt;/p&gt;
&lt;p&gt;I aslo want to create a button that will open a video file in Windows Media Player.&lt;/p&gt;
&lt;p&gt;Can you point me in the right direction on this subject as well?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks,&lt;/p&gt;
&lt;p&gt;-Lawson&lt;/p&gt;</description></item><item><title>Re: open a document with C#</title><link>https://www.infopathdev.com:443/forums/thread/55831.aspx</link><pubDate>Sun, 13 Jun 2010 03:18:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:55831</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/55831.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=55831</wfw:commentRss><description>&lt;p&gt;Hey there, Lawson! &lt;a href="http://www.c-sharpcorner.com/uploadfile/mgold/wordfromdotnet11082005235506pm/wordfromdotnet.aspx"&gt;Here&amp;#39;s&lt;/a&gt; an article that may help you get started opening a Word document with .NET code.&lt;/p&gt;</description></item><item><title>Re: open a document with C#</title><link>https://www.infopathdev.com:443/forums/thread/55830.aspx</link><pubDate>Sat, 12 Jun 2010 22:17:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:55830</guid><dc:creator>Lawson</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/55830.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=55830</wfw:commentRss><description>&lt;p&gt;I am using the following code:&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;this&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.Application.Documents.Open(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;@&amp;quot;C:\Users\Lawson\Documents\Test.docx&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;But I keep getting the following error:&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;Error&amp;nbsp;1&amp;nbsp;&amp;#39;Form_Creator_A.FormCode&amp;#39; does not contain a definition for &amp;#39;Application&amp;#39;&amp;nbsp;C:\Users\Lawson\Documents\InfoPath Projects\Form Creator A1\FormCode.cs&amp;nbsp;543&amp;nbsp;18&amp;nbsp;Form Creator A&lt;br /&gt;&lt;/p&gt;&lt;/font&gt;</description></item><item><title>open a document with C#</title><link>https://www.infopathdev.com:443/forums/thread/55829.aspx</link><pubDate>Sat, 12 Jun 2010 22:00:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:55829</guid><dc:creator>Lawson</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/55829.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=55829</wfw:commentRss><description>&lt;p&gt;I have an IP 2003 form with C# code.&lt;/p&gt;
&lt;p&gt;I would like to code a button that will open a document when it is pressed.&lt;/p&gt;
&lt;p&gt;Does anybody know how to do this with C# code?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks,&lt;/p&gt;
&lt;p&gt;-Lawson&lt;/p&gt;</description></item></channel></rss>