LoadWebBrowserControl Method

This method can be used to display HTML pages within Project. It can be used when the Project Guide is shown or hidden. When the Project Guide is hidden, the method loads the Web Browser Control within Project and issues the LoadWebPage event. When the Project Guide is shown, the method only issues the LoadWebPage event.

Syntax

expression**.LoadWebBrowserControl(TargetPage, WrapperPage)**

*expression   * Optional. An expression that returns an Application object.

TargetPage    Required String. A numeric ID that identifies the HTML target page that needs to be displayed. TargetPage can also be set to a URL, an XML stream, a pointer to an XML file, or any other string value.

WrapperPage    Optional String. A pointer to an HTML page that provides wrapper functionality for the page being displayed in Project. The wrapper page contains event-handling code that allows Project functionality, such as saving files or changing views, to work when a web page is being displayed. The WrapperPage parameter is only used when the Project Guide is hidden. When the Project Guide is shown, mainpage.htm is used as the wrapper page, and a WrapperPage parameter, if specified, is ignored. If no WrapperPage parameter is specified, Project's default wrapper page, gbui://wrapper.htm, is used.

Applies to | Application Object