<?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: Task Pane - Managed Code</title><link>https://www.infopathdev.com:443/forums/thread/10664.aspx</link><pubDate>Fri, 17 Nov 2006 17:45:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:10664</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/10664.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=10664</wfw:commentRss><description>Certainly. XDocument contains an Extension property which gives access to your methods.&lt;br /&gt;&lt;br /&gt;var xd = window.external.XDocument;&lt;br /&gt;xd.Extension.MyMethod(param1, param2);</description></item><item><title>Re: Task Pane - Managed Code</title><link>https://www.infopathdev.com:443/forums/thread/10663.aspx</link><pubDate>Fri, 17 Nov 2006 10:45:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:10663</guid><dc:creator>travisBickle</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/10663.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=10663</wfw:commentRss><description>Is there any way i can call a method in the manged code from the task pane? for instance a validate before save method?&lt;br /&gt;&lt;br /&gt;Cheers</description></item><item><title>Re: Task Pane - Managed Code</title><link>https://www.infopathdev.com:443/forums/thread/10662.aspx</link><pubDate>Thu, 16 Nov 2006 17:16:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:10662</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/10662.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=10662</wfw:commentRss><description>From the task pane you access: window.external.Window.XDocument&lt;br /&gt;&lt;br /&gt;Once you've got this handle to the XDocument, you can work it just like you would inside your form's code.&lt;br /&gt;&lt;br /&gt;Keep in mind that you might not be able to do everything you want going from the task pane to the form code. If you can, then this will save you needing to go Full Trust.</description></item><item><title>Re: Task Pane - Managed Code</title><link>https://www.infopathdev.com:443/forums/thread/10661.aspx</link><pubDate>Thu, 16 Nov 2006 08:49:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:10661</guid><dc:creator>travisBickle</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/10661.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=10661</wfw:commentRss><description>&lt;blockquote id="quote"&gt;&lt;font size="1" face="Verdana, Arial, Helvetica" id="quote"&gt;quote:&lt;hr height="1" noshade id="quote"&gt;If you go in the reverse (unmanaged to managed -or- task pane to form) then the Full Trust requirement does not exist.&lt;hr height="1" noshade id="quote"&gt;&lt;/font id="quote"&gt;&lt;/blockquote id="quote"&gt;&lt;br /&gt;&lt;br /&gt;How would i do this. Have you any examples?</description></item><item><title>Re: Task Pane - Managed Code</title><link>https://www.infopathdev.com:443/forums/thread/10660.aspx</link><pubDate>Wed, 15 Nov 2006 17:33:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:10660</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/10660.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=10660</wfw:commentRss><description>You can call into the task pane from managed code, but it will require Full Trust on your form because you are calling from managed to unmanaged code. If you go in the reverse (unmanaged to managed -or- task pane to form) then the Full Trust requirement does not exist.</description></item><item><title>Task Pane - Managed Code</title><link>https://www.infopathdev.com:443/forums/thread/5918.aspx</link><pubDate>Tue, 14 Nov 2006 16:39:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5918</guid><dc:creator>travisBickle</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5918.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5918</wfw:commentRss><description>Im looking to display &amp;lt;div elements in a custom task pane, dependent on what is selected in the infopath form.&lt;br /&gt;&lt;br /&gt;If i were to do this via unmanaged code it would be similar to this on the ContextChange event:&lt;br /&gt;&lt;br /&gt;var oTaskPane = XDocument.View.Window.TaskPanes.Item(0);&lt;br /&gt;&lt;br /&gt;                //Retrieve html object for task pane&lt;br /&gt;                var oHTMLDoc = oTaskPane.HTMLDocument.all;&lt;br /&gt;&lt;br /&gt;                //Clear previous help topic from task pane&lt;br /&gt;                if (helpString)&lt;br /&gt;                    oHTMLDoc.item(helpString).style.display = "none";&lt;br /&gt;&lt;br /&gt;                //Display DIV Statemment having same ID as the context node name&lt;br /&gt;                oHTMLDoc.item(eventObj.Context.nodeName).style.display = "";&lt;br /&gt;&lt;br /&gt;                //Keep records of string displayed so can be cleared later&lt;br /&gt;                helpString = eventObj.Context.nodeName;&lt;br /&gt;&lt;br /&gt;How do achive the same in managed code?&lt;br /&gt;&lt;br /&gt;Thanks in advance&lt;br /&gt;</description></item></channel></rss>