<?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: Callback from HtmlTaskPane to Form</title><link>https://www.infopathdev.com:443/forums/thread/14004.aspx</link><pubDate>Thu, 17 Nov 2005 14:52:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14004</guid><dc:creator>franck</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14004.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14004</wfw:commentRss><description>oops....Jason, I have to take the blame for this...sorry, I meant vt.&lt;br /&gt;&lt;br /&gt;Franck</description></item><item><title>Re: Callback from HtmlTaskPane to Form</title><link>https://www.infopathdev.com:443/forums/thread/14003.aspx</link><pubDate>Thu, 17 Nov 2005 14:09:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14003</guid><dc:creator>vt_asparagus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14003.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14003</wfw:commentRss><description>Oh no.  Patrick look what you have done to me!  I told my wife you guys had developed a new nickname for me and she laughed uncontrollably for 10 minutes (my real last name is easy to make fun, would you believe the hotel front desk where I have been living out of for the past 4 months all call me Mr. Asparagus!!!)  &lt;br /&gt;&lt;br /&gt;Again Tony...sorry about your thread.  We live to serve if you have more questions...</description></item><item><title>Re: Callback from HtmlTaskPane to Form</title><link>https://www.infopathdev.com:443/forums/thread/14002.aspx</link><pubDate>Thu, 17 Nov 2005 09:00:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14002</guid><dc:creator>AndersR</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14002.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14002</wfw:commentRss><description>hi Very Tender ;-)&lt;br /&gt;&lt;br /&gt;My last (and first btw ;-) InfoPath project, has more than 1000 lines of code in it, with both taskpane and modal boxes and the customer didnt want to spend $200 on a code signing certificate.&lt;br /&gt;&lt;br /&gt;All i did to get it to work was to set Full Trust, change URL to URI in manifest and create an installer with regform.exe&lt;br /&gt;&lt;br /&gt;Ofcourse since you are using a taskpane, you also need to register microsoft.mshtml.dll in the GAC on every machine running the form (create a script running gacutil via AD or bootscripts) or you will get an exception.&lt;br /&gt;&lt;br /&gt;hope this clears it up&lt;br /&gt;//AndersR&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Re: Callback from HtmlTaskPane to Form</title><link>https://www.infopathdev.com:443/forums/thread/14001.aspx</link><pubDate>Thu, 17 Nov 2005 00:38:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14001</guid><dc:creator>vt_asparagus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14001.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14001</wfw:commentRss><description>Tony...I do not mean to hop on your thread here but AndersR has struck a cord with me.&lt;br /&gt;&lt;br /&gt;AndersR...This was an issue I ran into.  I wanted to .NET Managed code but I need to used an "integrated" taskpane, I could not use certificates and I had to use sharepoint for deployment (I could not do a msi to install as you described earlier.).  I had some posts on this forum about this.  So you are saying all I needed to do was sign the template (not requiring a certificate) and then deploy on SharePoint?</description></item><item><title>Re: Callback from HtmlTaskPane to Form</title><link>https://www.infopathdev.com:443/forums/thread/14000.aspx</link><pubDate>Wed, 16 Nov 2005 22:31:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14000</guid><dc:creator>AndersR</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14000.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14000</wfw:commentRss><description>Hi Tony&lt;br /&gt;&lt;br /&gt;you dont mention anything about the form being fully trusted. Did you check the "full trust" checkbox?&lt;br /&gt;Also remember to check the "accept.. blabla" (sorry its two lines of text and i dont have IP on this box :-)&lt;br /&gt;&lt;br /&gt;In general i would recommend reading the articles on MSDN regarding common developer tasks. Especially this one:&lt;br /&lt;a target="_blank" href=http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ipsdk/html/ipsdkSignedFormTemplate_HV01120501.asp&gt;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ipsdk/html/ipsdkSignedFormTemplate_HV01120501.asp&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;wich describes how to publish fully trusted forms without certificates&lt;br /&gt;&lt;br /&gt;Regarding the "sharepoint workaround" as you mention, it is only applicable on fully trusted forms without certificates so i dont think it will help on your specific problem:&lt;br /&gt;&lt;br /&lt;a target="_blank" href=http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ipsdk/html/ipsdkSignedFormTemplate_HV01120501.asp&gt;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ipsdk/html/ipsdkSignedFormTemplate_HV01120501.asp&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;About the aspx page in HTMLtaskpane: try putting it in the _layout vdir in sharepoint just to test if there is a difference so that we can exclude cross-domain from the equation!&lt;br /&gt;&lt;br /&gt;hth&lt;br /&gt;//AndersR&lt;br /&gt;&lt;br /&gt;ps. just a silly question now that you mention your setup: you *do* have SP1 &amp;gt; on that Office right?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Re: Callback from HtmlTaskPane to Form</title><link>https://www.infopathdev.com:443/forums/thread/13999.aspx</link><pubDate>Wed, 16 Nov 2005 20:31:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13999</guid><dc:creator>tony.montana</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13999.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13999</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;and wow, what a great feedback. Thanks a lot. Ok it seems that i'm beginning to understand some more about the facts that are important to my situation.&lt;br /&gt;I'll will start with AndersR who think's he's walking out of topic. NO :-) That's 100% my situation. I found out (Thnaks to Patrick's book I bought today) how the security stuff work togehter and how they interact. But what I can't clearly figure out (even with the book) is how to publish fully thusted forms to sharepoint. The problems happen when I open the form SharePoint. (location:&lt;a target="_blank" href=http://sharepoint/&gt;http://sharepoint/&lt;/a&gt;) &lt;br /&gt;What I'm currently doing is the following workflow.&lt;br /&gt;&lt;br /&gt;1) Open IP from VS and Check the "Sign" checkbox (I added this cert manually to the os, as trusted) &lt;br /&gt;2) Publish form to SharePoint (new or owerride seems to make no difference for me)&lt;br /&gt;3) Open the form from InfoPath, accept the Users Cert as trusted and click ok ---&amp;gt; bang ---&amp;gt; Security Exception from JavaScript accessing external.Window etc.&lt;br /&gt;&lt;br /&gt;Seems to be an cross domain problem, but both components are residing an the same machine. The only difference is, that sharepoint is accessed via&lt;a target="_blank" href=http://sharepoint&gt;http://sharepoint&lt;/a&gt; and the "normal" websites via&lt;a target="_blank" href=http://winserver&gt;http://winserver&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Did someone have an idea and can tell me if my steps for publishing a fully trusted form are correct?&lt;br /&gt;&lt;br /&gt;Can someone give me a link or tell me some more about the Sharepoint workaround?&lt;br /&gt;&lt;br /&gt;Kindly regards&lt;br /&gt;&lt;br /&gt;Tony&lt;br /&gt;&lt;br /&gt;Installation (Development maschine | virtual mashine):&lt;br /&gt;&lt;br /&gt;WinServer 2003 (no domain)&lt;br /&gt;SharePoint Portal Server 2003&lt;br /&gt;VS2003&lt;br /&gt;VS 2003 Office / InfoPath Toolkit&lt;br /&gt;SAP .NET Connector 2.0 &lt;br /&gt;MS Office 2003&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Re: Callback from HtmlTaskPane to Form</title><link>https://www.infopathdev.com:443/forums/thread/13998.aspx</link><pubDate>Wed, 16 Nov 2005 13:42:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13998</guid><dc:creator>AndersR</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13998.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13998</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;&lt;i&gt;Originally posted by vt_asparagus&lt;/i&gt;&lt;br /&gt;Glad to help.  As I mentioned, and Franck too, is that you will need full trust.  For the project I was doing I was going to use managed code, but the client did not want to deal with certificate (go figure that one out) and I was forced back into use script.  I did not continue past that but from what everyone said is once you have it at full trust you should be good to go.&lt;br /&gt;&lt;br /&gt;&lt;hr height="1" noshade id="quote"&gt;&lt;/font id="quote"&gt;&lt;/blockquote id="quote"&gt;&lt;br /&gt;&lt;br /&gt;You can publish forms with managed code without code signing signatures. All you need is to set the URN in your manifest.xsf and then use regform.exe in the Tools folder of your SDK with the urn as parameter:&lt;br /&gt;&lt;br /&gt;regform.exe /U urn:YourCompany:InfoPath:YourForm /T Yes /MSI yourForm.xsn&lt;br /&gt;&lt;br /&gt;The /T option specifies the form is fully trusted&lt;br /&gt;/MSI means output is a MS Installer package.&lt;br /&gt;&lt;br /&gt;The package can be installed with all the usual parameters for scilent installation etc to be rolled out via AD or boot scripts.&lt;br /&gt;&lt;br /&gt;One thing you *wont* have (out of the box anyway) is the publishing feature to a SharePoint library (has to do with using URI instead of a URL in manifest) but theres a workaround of this as well by replacing the template of the library, but im already wandering way of topic ;-)&lt;br /&gt;&lt;br /&gt;//AndersR&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Re: Callback from HtmlTaskPane to Form</title><link>https://www.infopathdev.com:443/forums/thread/13997.aspx</link><pubDate>Wed, 16 Nov 2005 06:59:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13997</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13997.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13997</wfw:commentRss><description>Hi Tony and welcome to our forum!&lt;br /&gt;Looks like you are in the very able hands of Jason, Franck, and Anders...&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>Re: Callback from HtmlTaskPane to Form</title><link>https://www.infopathdev.com:443/forums/thread/13996.aspx</link><pubDate>Wed, 16 Nov 2005 04:01:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13996</guid><dc:creator>vt_asparagus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13996.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13996</wfw:commentRss><description>Check this out, it may have some answers, they are talking about passing values with an aspx embedded in the custom taskpane -&lt;a target="_blank" href=http://groups.google.com/group/microsoft.public.infopath/browse_thread/thread/133021719e343bd/063df81a61fd7652&gt;http://groups.google.com/group/microsoft.public.infopath/browse_thread/thread/133021719e343bd/063df81a61fd7652&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Glad to help.  As I mentioned, and Franck too, is that you will need full trust.  For the project I was doing I was going to use managed code, but the client did not want to deal with certificate (go figure that one out) and I was forced back into use script.  I did not continue past that but from what everyone said is once you have it at full trust you should be good to go.&lt;br /&gt;</description></item><item><title>Re: Callback from HtmlTaskPane to Form</title><link>https://www.infopathdev.com:443/forums/thread/13995.aspx</link><pubDate>Tue, 15 Nov 2005 22:20:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13995</guid><dc:creator>AndersR</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13995.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13995</wfw:commentRss><description>Hi and welcome aboard :-)&lt;br /&gt;&lt;br /&gt;it would probably be a security issue. AFAIR window.External.Window.XDocument is security level 2, and that means no cross-domain trust. &lt;br /&gt;&lt;br /&gt;To prove this, try with an ASPX page on same server as your trusted form.&lt;br /&gt;&lt;br /&gt;hth&lt;br /&gt;//AndersR</description></item><item><title>Re: Callback from HtmlTaskPane to Form</title><link>https://www.infopathdev.com:443/forums/thread/13994.aspx</link><pubDate>Tue, 15 Nov 2005 17:46:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13994</guid><dc:creator>tony.montana</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13994.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13994</wfw:commentRss><description>Hello franck,&lt;br /&gt;&lt;br /&gt;thanks for your fast response. I've signed my project digitally and it seems to be full trusted. I've an embedded html ressource file, which makes this call without any problems. When I use an external aspx file it wont work. :-( Any Idea? &lt;br /&gt;&lt;br /&gt;var xDocument = window.external.Window.XDocument.DOM;&lt;br /&gt;xDocument.getElementsByTagName("my:Name")[0].text = "Meyer, Josef";&lt;br /&gt;&lt;br /&gt;Regards Tony&lt;br /&gt;&lt;br /&gt;EDIT&lt;br /&gt;I just stepped into the Script Debugger and can see the XDocument ?!?!&lt;br /&gt;&lt;br /&gt;&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;&lt;i&gt;Originally posted by franck&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Hi Tony,&lt;br /&gt;&lt;br /&gt;For TaskPane manipulation through Managed Code, your template needs to be full trust.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Franck Dauché&lt;br /&gt;&lt;hr height="1" noshade id="quote"&gt;&lt;/font id="quote"&gt;&lt;/blockquote id="quote"&gt;</description></item><item><title>Re: Callback from HtmlTaskPane to Form</title><link>https://www.infopathdev.com:443/forums/thread/13993.aspx</link><pubDate>Tue, 15 Nov 2005 17:02:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13993</guid><dc:creator>franck</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13993.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13993</wfw:commentRss><description>Hi Tony,&lt;br /&gt;&lt;br /&gt;For TaskPane manipulation through Managed Code, your template needs to be full trust.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;&lt;br /&gt;Franck Dauché</description></item><item><title>Re: Callback from HtmlTaskPane to Form</title><link>https://www.infopathdev.com:443/forums/thread/13992.aspx</link><pubDate>Tue, 15 Nov 2005 16:53:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13992</guid><dc:creator>tony.montana</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13992.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13992</wfw:commentRss><description>Hi vt_asparagus,&lt;br /&gt;&lt;br /&gt;and thanks for the nice welcome. :-)&lt;br /&gt;&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;&lt;i&gt;Originally posted by vt_asparagus&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;I will give an official welcome for Patrick (site guru).&lt;br /&gt;On my last InfoPath project I highly utilized the custom task pane to do many things.  For instance, I embedded search functionality into the taskpane to call a webservice.  You can pass data easily between the task pane and the InfoPath form.&lt;br /&gt;&lt;hr height="1" noshade id="quote"&gt;&lt;/font id="quote"&gt;&lt;/blockquote id="quote"&gt;&lt;br /&gt;&lt;br /&gt;That's 100% what I want to do ;-) I've tried to build a c# / js sample in analogie to your post. &lt;br /&gt;Calling JS from InfoPath seems to be no problem. Also changes in the DOM through JS will be aviable in InfoPath. &lt;br /&gt;What I can not get to work is this call.&lt;br /&gt;&lt;br /&gt;window.external.Window.XDocument.Extension.SearchForPartNumber(Parts.txtPartSearch.value, Parts.rdoPartNumber.checked)&lt;br /&gt;&lt;br /&gt;I wrote an c# method called ChangeValue(String val) only for testing.&lt;br /&gt;Excuse the VBScript example but it will get the point across.  It was what the client wanted.&lt;br /&gt;&lt;br /&gt;public string ChangeValue( String val)&lt;br /&gt;{&lt;br /&gt;	Microsoft.Office.Interop.InfoPath.SemiTrust.IXMLDOMDocument dom = thisXDocument.DOM;&lt;br /&gt;dom.selectSingleNode("my:meineFelder/my:Personenkennziffer").text = val;&lt;br /&gt;	return val + "_SET";&lt;br /&gt;		}&lt;br /&gt;&lt;br /&gt;This code is in the HTML page:&lt;br /&gt;&lt;br /&gt;		function check(){&lt;br /&gt;			try &lt;br /&gt;			{&lt;br /&gt;				var s = window.external.Window.XDocument.Extension.ChangeValue("1545874");&lt;br /&gt;				alert(s);&lt;br /&gt;			}&lt;br /&gt;			catch(e) &lt;br /&gt;			{&lt;br /&gt;				alert(e.message);&lt;br /&gt;			}&lt;br /&gt;		}&lt;br /&gt;&lt;br /&gt;Actually I will see an the "catch" alert box saying "Permission denied". I've add the calling Site to the trusted IE zone but it changed nothing. Perhaps I should mentioned that the Site I display in the TaskPane is an aspx site.&lt;br /&gt;&lt;br /&gt;Kindly Regards&lt;br /&gt;&lt;br /&gt;Tony</description></item><item><title>Re: Callback from HtmlTaskPane to Form</title><link>https://www.infopathdev.com:443/forums/thread/13991.aspx</link><pubDate>Tue, 15 Nov 2005 01:39:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13991</guid><dc:creator>vt_asparagus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13991.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13991</wfw:commentRss><description>I will give an official welcome for Patrick (site guru).&lt;br /&gt;&lt;br /&gt;On my last InfoPath project I highly utilized the custom task pane to do many things.  For instance, I embedded search functionality into the taskpane to call a webservice.  You can pass data easily between the task pane and the InfoPath form.&lt;br /&gt;&lt;br /&gt;Excuse the VBScript example but it will get the point across.  It was what the client wanted.&lt;br /&gt;&lt;br /&gt;This code is in the HTML page:&lt;br /&gt;&lt;br /&gt;'===========================&lt;br /&gt;' Adds items to the list box.&lt;br /&gt;'===========================&lt;br /&gt;Sub AddPartItem(displayText, valueText) &lt;br /&gt;  Dim oOption&lt;br /&gt;  Set oOption = document.createElement("OPTION")&lt;br /&gt;  oOption.text = displayText&lt;br /&gt;  oOption.value = valueText&lt;br /&gt;  document.GetElementById("lstParts").add(oOption)&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;This code is in InfoPath:&lt;br /&gt;&lt;br /&gt;Sub SendTaskPaneResultsPartsByNo()&lt;br /&gt;  Dim i&lt;br /&gt;  For i = 0 To XDocument.DataObjects(...).DOM.selectNodes(...).length - 1&lt;br /&gt;    call XDocument.View.Window.TaskPanes.Item(0).HTMLDocument.parentWindow.AddPartItem( _&lt;br /&gt;			XDocument.DataObjects(...).DOM.selectNodes(...)(i).text, _&lt;br /&gt;			XDocument.DataObjects(...).DOM.selectNodes(...)(i).text)&lt;br /&gt;  Next&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;OR can go vice versa&lt;br /&gt;&lt;br /&gt;In the HTML page I can go:&lt;br /&gt;&lt;br /&gt;Call window.external.Window.XDocument.Extension.SearchForPartNumber(Parts.txtPartSearch.value, Parts.rdoPartNumber.checked)&lt;br /&gt;&lt;br /&gt;And the create a method SearchForPartNumber in InfoPath.&lt;br /&gt;&lt;br /&gt;If it sounds like you are going to use manage code, review this article. -&lt;a target="_blank" href=http://blogs.msdn.com/infopath/archive/2004/09/27/234911.aspx&gt;http://blogs.msdn.com/infopath/archive/2004/09/27/234911.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The one issue I found with using .NET managed code and the custom task pane is that you will need to have full trust.  Someone please correct me if I am wrong.</description></item><item><title>Callback from HtmlTaskPane to Form</title><link>https://www.infopathdev.com:443/forums/thread/12679.aspx</link><pubDate>Mon, 14 Nov 2005 23:56:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12679</guid><dc:creator>tony.montana</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12679.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12679</wfw:commentRss><description>Hello Members,&lt;br /&gt;&lt;br /&gt;i'm new here and currently working on an InfoPath Project. (Really ;-) I'm 29 years old programmer normally responsible for ado.net &amp; sql server programming in our team. Currently i have to find an answer about this InfoPath Question. &lt;br /&gt;&lt;br /&gt;I'm using VS 2003 + InfoPath Toolkit to create my forms and publish them to a SharePoint server. At the moment I'm testing around with the HtmlTaskPane and checked the sample provided by MS. My question is if it is possible to access the current InfoPath formular and change field values which I selected from a drop down list in the HtmlTaskPane?&lt;br /&gt;&lt;br /&gt;If you need additional information about &lt;br /&gt;&lt;br /&gt;Regards&lt;br /&gt;&lt;br /&gt;Tony</description></item></channel></rss>