<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: How to call Word Templete in a drop-down field?</title><link>https://www.infopathdev.com:443/forums/thread/32318.aspx</link><pubDate>Thu, 18 Sep 2008 00:04:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:32318</guid><dc:creator>Jamesliang</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/32318.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=32318</wfw:commentRss><description>&lt;p&gt;Hi Chandrakanth.&lt;/p&gt;
&lt;p&gt;&amp;nbsp; when I used VSTA to write this code, system display :&lt;/p&gt;
&lt;p&gt;Error&amp;nbsp;1&amp;nbsp;The name &amp;#39;eventobj&amp;#39; does not exist in the current context&amp;nbsp;C:\Documents and Settings\JamesLiang.VFF\My Documents\InfoPath Projects\CSR_82611\FormCode.cs&amp;nbsp;36&amp;nbsp;17&amp;nbsp;CSR_8261&lt;br /&gt;Error&amp;nbsp;2&amp;nbsp;The name &amp;#39;eventObj&amp;#39; does not exist in the current context&amp;nbsp;C:\Documents and Settings\JamesLiang.VFF\My Documents\InfoPath Projects\CSR_82611\FormCode.cs&amp;nbsp;36&amp;nbsp;40&amp;nbsp;CSR_8261&lt;br /&gt;Error&amp;nbsp;3&amp;nbsp;The type or namespace name &amp;#39;var&amp;#39; could not be found (are you missing a using directive or an assembly reference?)&amp;nbsp;C:\Documents and Settings\JamesLiang.VFF\My Documents\InfoPath Projects\CSR_82611\FormCode.cs&amp;nbsp;37&amp;nbsp;13&amp;nbsp;CSR_8261&lt;br /&gt;Error&amp;nbsp;4&amp;nbsp;The type or namespace name &amp;#39;ActiveObject&amp;#39; could not be found (are you missing a using directive or an assembly reference?)&amp;nbsp;C:\Documents and Settings\JamesLiang.VFF\My Documents\InfoPath Projects\CSR_82611\FormCode.cs&amp;nbsp;38&amp;nbsp;17&amp;nbsp;CSR_8261&lt;br /&gt;Error&amp;nbsp;5&amp;nbsp;The name &amp;#39;eventObj&amp;#39; does not exist in the current context&amp;nbsp;C:\Documents and Settings\JamesLiang.VFF\My Documents\InfoPath Projects\CSR_82611\FormCode.cs&amp;nbsp;39&amp;nbsp;36&amp;nbsp;CSR_8261&lt;/p&gt;
&lt;p&gt;Can you let me know what&amp;#39;s happen?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: How to call Word Templete in a drop-down field?</title><link>https://www.infopathdev.com:443/forums/thread/32311.aspx</link><pubDate>Wed, 17 Sep 2008 16:04:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:32311</guid><dc:creator>Jamesliang</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/32311.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=32311</wfw:commentRss><description>&lt;p&gt;Thanks a lot.&lt;/p&gt;</description></item><item><title>Re: How to call Word Templete in a drop-down field?</title><link>https://www.infopathdev.com:443/forums/thread/32301.aspx</link><pubDate>Wed, 17 Sep 2008 13:23:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:32301</guid><dc:creator>chandrakanth</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/32301.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=32301</wfw:commentRss><description>&lt;p class="MsoNormal" style="MARGIN:0in 0in 10pt;"&gt;&lt;a class="" title="OLE_LINK3" name="OLE_LINK3"&gt;&lt;/a&gt;&lt;a class="" title="OLE_LINK2" name="OLE_LINK2"&gt;&lt;/a&gt;&lt;a class="" title="OLE_LINK1" name="OLE_LINK1"&gt;&lt;/a&gt;&lt;span&gt;&lt;span&gt;&lt;font face="Calibri" size="3"&gt;Hi Jamesliang, &lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 10pt;"&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;font face="Calibri" size="3"&gt;By writing the following code we can open the word document based on the value selected by the user in the drop down list box.&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 10pt;"&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;font face="Calibri" size="3"&gt;The steps that you need to follow for getting the word document opened are:&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoListParagraphCxSpFirst" style="MARGIN:0in 0in 0pt 0.5in;TEXT-INDENT:-0.25in;mso-list:l0 level1 lfo1;"&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span style="FONT-FAMILY:Symbol;mso-fareast-font-family:Symbol;mso-bidi-font-family:Symbol;"&gt;&lt;span style="mso-list:Ignore;"&gt;&lt;font size="3"&gt;·&lt;/font&gt;&lt;span style="FONT:7pt &amp;#39;Times New Roman&amp;#39;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face="Calibri" size="3"&gt;Right click the drop down list box , based on which the word document needs to be opened and select Programming option.&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoListParagraphCxSpLast" style="MARGIN:0in 0in 10pt 0.5in;TEXT-INDENT:-0.25in;mso-list:l0 level1 lfo1;"&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span style="FONT-FAMILY:Symbol;mso-fareast-font-family:Symbol;mso-bidi-font-family:Symbol;"&gt;&lt;span style="mso-list:Ignore;"&gt;&lt;font size="3"&gt;·&lt;/font&gt;&lt;span style="FONT:7pt &amp;#39;Times New Roman&amp;#39;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face="Calibri" size="3"&gt;In Programming, select “On After Change Event”.&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 10pt 0.25in;"&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;font face="Calibri" size="3"&gt;In &lt;b style="mso-bidi-font-weight:normal;"&gt;On After change&lt;/b&gt; function of a drop down list box, please write the following code:&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;b style="mso-bidi-font-weight:normal;"&gt;&lt;font face="Calibri"&gt;&lt;b style="mso-bidi-font-weight:normal;"&gt;&lt;font size="3"&gt;if (eventObj.IsUndoRedo || eventObj.Operation == &amp;quot;Insert&amp;quot;)&lt;/font&gt;&lt;/b&gt;&lt;b style="mso-bidi-font-weight:normal;"&gt;&lt;font size="3"&gt;{&lt;span style="mso-tab-count:1;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;b style="mso-bidi-font-weight:normal;"&gt;&lt;font size="3"&gt;return;&lt;/font&gt;&lt;/b&gt;&lt;b style="mso-bidi-font-weight:normal;"&gt;&lt;font size="3"&gt;}&lt;/font&gt;&lt;/b&gt;&lt;b style="mso-bidi-font-weight:normal;"&gt;&lt;font size="3"&gt;var wordApp = new ActiveXObject(&amp;quot;Word.Application&amp;quot;);&lt;/font&gt;&lt;/b&gt;&lt;b style="mso-bidi-font-weight:normal;"&gt;&lt;font size="3"&gt;wordApp.Documents.Open(eventObj.Site.text);&lt;/font&gt;&lt;/b&gt; 
&lt;p class="MsoListParagraphCxSpLast" style="MARGIN:0in 0in 10pt 0.5in;"&gt;&lt;b style="mso-bidi-font-weight:normal;"&gt;&lt;font size="3"&gt;wordApp.Visible = true;&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>How to call Word Templete in a drop-down field?</title><link>https://www.infopathdev.com:443/forums/thread/32290.aspx</link><pubDate>Tue, 16 Sep 2008 23:23:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:32290</guid><dc:creator>Jamesliang</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/32290.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=32290</wfw:commentRss><description>&lt;p&gt;I hope user use drop-down list field to choice a word templete and then system will open this word templete. does anybody can help me?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>