<?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>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: How can the MOUSE HOVER be captured on an InfoPath BUTTON thru CODE ?</title><link>https://www.infopathdev.com:443/forums/thread/21274.aspx</link><pubDate>Tue, 26 Jun 2007 23:53:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:21274</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/21274.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=21274</wfw:commentRss><description>Can you pass in the Application and XDocument as parameters to initialize your class library? That would give you the handles you need to do what you want.</description></item><item><title>Re: How can the MOUSE HOVER be captured on an InfoPath BUTTON thru CODE ?</title><link>https://www.infopathdev.com:443/forums/thread/21236.aspx</link><pubDate>Tue, 26 Jun 2007 07:19:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:21236</guid><dc:creator>anandhi_nandakumar</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/21236.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=21236</wfw:commentRss><description>&lt;p&gt;I am writing the code not in the code behind of the form but in the class library so I am not able to access the &lt;strong&gt;Application.XDcuments. &lt;/strong&gt;I am using the InfoPath 2003 object model to send the form through mail which will come as a embedded in the body in the outlook.&lt;/p&gt;&lt;p&gt;Following are the steps that I followed-&lt;/p&gt;&lt;p&gt;1) Created the Infopath form with the data connection for Email as &amp;quot;Email Submit&amp;quot;. Form named as &amp;quot;EmailDataConnectionForm.xsn&amp;quot;&lt;/p&gt;&lt;p&gt;2) I have&amp;nbsp;created the classlibrary for accessing the instance of the &amp;quot;EmailDataConnectionForm.xsn&amp;quot; Form and accessing the &amp;quot;Email Submit&amp;quot; data connection from code in the classlibrary. As it automatically sends the InfoPath form in the mail which will come as embedded form in the Outlook by just accessing the &amp;quot;Email Submit&amp;quot; data connection from code.&lt;/p&gt;&lt;p&gt;I have used the same code that I have&amp;nbsp;sent above as ERROR1 comment I couldnt try out because I couldnt get the access to the Application.XDocuments.&lt;/p&gt;&lt;p&gt;I want to know how should I proceed now? Whether my way is right or is there any better solution to do the same?&lt;/p&gt;&lt;p&gt;If this is the right way then How I should I supress the form as&amp;nbsp;it opens up the form instance when I do the NewFromSolution(). I want to send the form in the mail automatically without any pop up window to user.&lt;/p&gt;&lt;p&gt;This is kind of urgent. Please reply urgently. &lt;/p&gt;&lt;p&gt;Thanks &amp;amp; Regards,&lt;/p&gt;&lt;p&gt;Anandhi&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: How can the MOUSE HOVER be captured on an InfoPath BUTTON thru CODE ?</title><link>https://www.infopathdev.com:443/forums/thread/20641.aspx</link><pubDate>Tue, 12 Jun 2007 16:32:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20641</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20641.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=20641</wfw:commentRss><description>&lt;p&gt;&lt;em&gt;Please note that I have only looked over your code, and have not actually tried to run any of it.&lt;/em&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;ERROR 1:&lt;/strong&gt; You don&amp;#39;t need to create a new app. Just reference XDocuments directly.&lt;br /&gt;&lt;strong&gt;ERROR 2:&lt;/strong&gt; You are missing your quotes.&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;strike&gt;Microsoft.Office.Interop.InfoPath.Application myApp = new Microsoft.Office.Interop.InfoPath.Application();&amp;nbsp; // ------------------------ ERROR 1&lt;br /&gt;&lt;/strike&gt;&lt;br /&gt;// Get a reference the XDocuments collection&lt;br /&gt;// and open the sample form.&lt;br /&gt;&lt;strike&gt;XDocumentsCollection myXDocs = myApp.XDocuments;&lt;br /&gt;&lt;/strike&gt;XDocument myXDoc = &lt;strong&gt;&lt;u&gt;Application.XDocuments&lt;/u&gt;&lt;/strong&gt;.NewFromSolution(@&lt;strong&gt;&lt;u&gt;&amp;quot;&lt;/u&gt;&lt;/strong&gt;\\ps2578\FormsForProTrack\EmailDataConnectionForm1.xsn&lt;strong&gt;&lt;u&gt;&amp;quot;&lt;/u&gt;&lt;/strong&gt;);&amp;nbsp; //---------------------- ERROR 2&lt;br /&gt;myXDoc.SaveAs(@&amp;quot;\\ps2578\FormsForProTrack\Test1.xml&amp;quot;);&lt;br /&gt;myXDocs.Close(0);&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: How can the MOUSE HOVER be captured on an InfoPath BUTTON thru CODE ?</title><link>https://www.infopathdev.com:443/forums/thread/20610.aspx</link><pubDate>Tue, 12 Jun 2007 05:14:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20610</guid><dc:creator>anandhi_nandakumar</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20610.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=20610</wfw:commentRss><description>&lt;p&gt;Thanks for your reply.. &lt;/p&gt;&lt;p&gt;I&amp;nbsp;had another query for which i need a confirmed answer.&lt;/p&gt;&lt;p&gt;Query : I want to send an InfoPath form in the body of my email thru code. &lt;/p&gt;&lt;p&gt;//// CODE STARTS&lt;/p&gt;&lt;p&gt;public string sendMail()&lt;br /&gt;{&lt;br /&gt;// Create an InfoPath Application object.&lt;br /&gt;&lt;br /&gt;Microsoft.Office.Interop.InfoPath.Application myApp = new Microsoft.Office.Interop.InfoPath.Application();&amp;nbsp; // ------------------------ ERROR 1&lt;br /&gt;&lt;br /&gt;// Get a reference the XDocuments collection&lt;br /&gt;// and open the sample form.&lt;br /&gt;XDocumentsCollection myXDocs = myApp.XDocuments;&lt;br /&gt;XDocument myXDoc = myXDocs.NewFromSolution(@&lt;a&gt;\\ps2578\FormsForProTrack\EmailDataConnectionForm1.xsn&lt;/a&gt;);&amp;nbsp; //---------------------- ERROR 2&lt;br /&gt;myXDoc.SaveAs(@&amp;quot;\\ps2578\FormsForProTrack\Test1.xml&amp;quot;);&lt;br /&gt;myXDocs.Close(0);&lt;br /&gt;&lt;br /&gt;myXDoc = myXDocs.Open(@&amp;quot;\\ps2578\FormsForProTrack\Test1.xml&amp;quot;, (int)XdDocumentVersionMode.xdFailOnVersionOlder);&lt;br /&gt;&lt;br /&gt;// Access the XML DOM for the underlying XML document using&lt;br /&gt;// the DOM property. Note that you must cast to the&lt;br /&gt;// IXMLDOMDocument2 type from the&lt;br /&gt;// Microsoft.Office.Interop.InfoPath.Xml namespace&lt;br /&gt;// to access the XML DOM.&lt;br /&gt;&lt;br /&gt;IXMLDOMDocument2 myXMLDoc = myXDoc.DOM as IXMLDOMDocument2;&lt;br /&gt;&lt;br /&gt;// Set the MSXML SelectionNamespaces property to the my&lt;br /&gt;// namespace of the form. IMPORTANT:Replace the namespace&lt;br /&gt;// with that of your sample form.&lt;br /&gt;myXMLDoc.setProperty(&amp;quot;SelectionNamespaces&amp;quot;, &amp;quot;xmlns:my=&amp;#39;&lt;a href="http://schemas.microsoft.com/office/infopath/2003/myXSD/2007-06-08T08:28:17&amp;#39;"&gt;http://schemas.microsoft.com/office/infopath/2003/myXSD/2007-06-08T08:28:17&amp;#39;&lt;/a&gt;&amp;quot;);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;IXMLDOMNode myXMLNode = myXMLDoc.selectSingleNode(&amp;quot;//my:field1&amp;quot;);&lt;br /&gt;myXMLNode.text = &amp;quot;Mrudula&amp;quot;;&lt;br /&gt;&lt;br /&gt;EmailAdapter da = (EmailAdapter)myXDoc.DataAdapters[&amp;quot;Email Submit&amp;quot;];&lt;br /&gt;&lt;br /&gt;da.Submit();&lt;br /&gt;&lt;br /&gt;// Save the updated form as Form2.xml and close out.&lt;br /&gt;myXDoc.SaveAs(@&amp;quot;D:\MOSS\ProTrack\InfoPathForms\Test.xml&amp;quot;);&lt;br /&gt;myXDocs.Close(0);&lt;br /&gt;myApp.Quit(false);&lt;br /&gt;&lt;br /&gt;return (&amp;quot;Finished!&amp;quot;);&lt;/p&gt;&lt;div class="msg Nth"&gt;}&amp;nbsp; ///CODE ENDS&lt;/div&gt;&lt;div class="msg Nth"&gt;&lt;/div&gt;&lt;div class="msg Nth"&gt;When i write this code in&amp;nbsp;a web service, I get an error on the line which is marked as ERROR 1 in the above code &lt;/div&gt;&lt;div class="msg Nth"&gt;&lt;/div&gt;&lt;div class="msg Nth"&gt;&lt;strong&gt;Error-&lt;br /&gt;&lt;br /&gt;Retrieving the COM class factory for component with CLSID {8075635F-5146-11D5-A672-00B0D022E945} failed due to the following error: 80070005&amp;nbsp;&lt;/strong&gt;&lt;/div&gt;&lt;div class="msg Nth"&gt;&lt;/div&gt;&lt;div class="msg Nth"&gt;When i write the same code in a class library and use the built DLL in my application i get an error on the line marked&amp;nbsp;ERROR 2 but the code terminates after this line. So, i cannot capture the error message.&lt;/div&gt;&lt;div class="msg Nth"&gt;&lt;/div&gt;&lt;div class="msg Nth"&gt;Also, please tell me whether i can send a mail having the embedded InfoPath form into it without using the EMAIL ADAPTER and MAIL ENVELOPE thru some CODE ? (preferrably C# code). I want to send the mail thru workflow.&lt;/div&gt;&lt;div class="msg Nth"&gt;&lt;/div&gt;&lt;div class="msg Nth"&gt;Please reply soon since it is urgent. &lt;/div&gt;&lt;div class="msg Nth"&gt;&lt;/div&gt;&lt;div class="msg Nth"&gt;Thanks and Regards,&lt;/div&gt;&lt;div class="msg Nth"&gt;Anandhi&lt;/div&gt;&lt;div class="msg Nth"&gt;&lt;/div&gt;&lt;div class="msg Nth"&gt;&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div class="msg Nth"&gt;&lt;/div&gt;&lt;div class="msg Nth"&gt;&lt;/div&gt;</description></item><item><title>Re: How can the MOUSE HOVER be captured on an InfoPath BUTTON thru CODE ?</title><link>https://www.infopathdev.com:443/forums/thread/20591.aspx</link><pubDate>Mon, 11 Jun 2007 17:05:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20591</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20591.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=20591</wfw:commentRss><description>This is not possible due to sandboxing. However, you can modify the view .xsl file and add the style='cursor: xyz' to the &amp;lt;input type='button'/&amp;gt; tag.</description></item><item><title>How can the MOUSE HOVER be captured on an InfoPath BUTTON thru CODE ?</title><link>https://www.infopathdev.com:443/forums/thread/20562.aspx</link><pubDate>Mon, 11 Jun 2007 05:24:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20562</guid><dc:creator>anandhi_nandakumar</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20562.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=20562</wfw:commentRss><description>&lt;p&gt;Hello All,&lt;/p&gt;&lt;p&gt;&amp;nbsp;Does anybody know how to capture the &amp;quot;Mouse Hover&amp;quot; event on a button in InfoPath ? I want to change the mouse cursor on this event.&lt;/p&gt;&lt;p&gt;Please help at the earliest.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Regards,&lt;/p&gt;&lt;p&gt;Anandhi&lt;/p&gt;</description></item></channel></rss>