Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / March 2006

Tip: Looking for answers? Try searching our database.

Context sensitive help in the custom task pane

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Philip Colmer - 14 Mar 2006 16:14 GMT
I'm trying to implement the InfoPath Lab 14 using managed code (as opposed
to scripting).

It would appear that the only way to get this to work is to rely on the
mshtml PIA which doesn't get installed with InfoPath :-(.

There is an entry on the IP blog about using late binding but that is just
WAAAAAAAAAAY over my head.

Has anyone implemented something like the context sensitive help task pane
without needing any special DLLs?

--Philip
Kalyan Reddy - 14 Mar 2006 20:53 GMT
Hi Phillip,

You dont need any DLL's to add Context sensitive Help in task pane.
You can add a help text using HTML and add as a resource file and enable the
task pane using Form options -> Advanced Tab and select the resource file.

Signature

Kalyan Reddy
Visit http://www.autonomysystems.com

> I'm trying to implement the InfoPath Lab 14 using managed code (as opposed
> to scripting).
[quoted text clipped - 9 lines]
>
> --Philip
Philip Colmer - 15 Mar 2006 10:40 GMT
Thank you for your reply but that isn't the problem I'm facing.

Lab 14 uses code to adjust the style settings in the task pane HTML code so
that only certain DIV sections are visible, depending on the context that
has just been selected. Unfortunately, Lab 14 has been written using script,
whereas I'm using managed code.

According to an InfoPath blog
(http://blogs.msdn.com/infopath/archive/2004/09/27/234911.aspx), the
solution is to either deploy the mshtml PIA or to use late binding. The
source code they provide is written in C# and I'm not sure if it will
translate over to Visual Basic which is what I'm using. Another reason why
I'm uncertain about this solution is because I'm not actually trying to call
script functions - I just want to use the VB equivalent of this:

     // Retrieve task pane object
     var oTaskPane = XDocument.View.Window.TaskPanes.Item(0);

     // Retrieve html object for task pane
     var oHTMLDoc = oTaskPane.HTMLDocument.all;

     // Clear previous help topic from task pane
     if (helpString)
        oHTMLDoc.item(helpString).style.display="none";

     // Display DIV statement having same ID as the context node name
     oHTMLDoc.item(eventObj.Context.nodeName).style.display="";

     // Keep record of string displayed, so can later be cleared
     helpString=eventObj.Context.nodeName;

     return;

Is there an easy alternative to deploying the mshtml PIA? If there isn't,
can anyone help with constructing an MSI to allow me to deploy it with Group
Policy?

Thanks.

--Philip

> Hi Phillip,
>
[quoted text clipped - 19 lines]
>>
>> --Philip
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.