HTMLWindow Property - Security Level 3


HTMLWindow Property ”Security Level 3

The HTMLWindow property returns a reference to the current HTMLWindow object that is running inside a custom task pane. This property is one of the inherited properties of the TaskPane object available when the type of task pane is 0 (custom task pane). Using this property form, designers can call a scripting function defined inside the HTML task pane.

Note  

This property provides the same functionality as the HTMLWindow property but is available only for fully trusted forms.

The following example uses the HTMLWindow property to set a reference to the custom task pane of a fully trusted form. Once the reference is retrieved, the TaskPaneSwitchView custom function is called, as shown here:

 var objHTMLWindow; objHTMLWindow = XDocument.View.Window.TaskPanes(0).HTMLWindow; objHTMLWindow.parentWindow.TaskPaneSwitchView(); 



Programming Microsoft Infopath. A Developers Guide
Programming Microsoft Infopath: A Developers Guide
ISBN: 1584504536
EAN: 2147483647
Year: 2006
Pages: 111
Authors: Thom Robbins

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net