C++: LPDISPATCH vtiOpenWebPage(LPCTSTR szFileName, LPCTSTR szURL, LPCTSTR szWebURL, LPCTSTR szWebTitle);
VB: vtiOpenWebPage(FileName as String, URL as String, WebURL as String, WebTitle as String) as Object
Description
This method causes the FrontPage Editor to open an existing web page from a file on the user’s local disk drive. If you want to open an existing document from the current web (on a local or remote web server) or from the Internet, see the FrontPage Explorer method vtiEditWebPage. Most page wizards use this call to load a temporary file they have created into the FrontPage Editor, setting a suggested page URL and leaving the web URL and web title arguments empty.
IMPORTANT: If the file referenced by FileName is in the FrontPage temp directory, it will be deleted after it is loaded into the FrontPage Editor.
Return Value
A pointer to an OLE dispatch object suitable for further automation calls (when they are defined). For this release of FrontPage, you should immediately release this object as described at the start of this section.
Parameters
FileName is an absolute path to a web page file on the user’s local disk drive. Example: “C:\temp\test.htm”.
URL is the suggested web-relative URL for this page that the Editor will use if it is to save the file into a web. If you leave it blank, the Editor will suggest a URL for you. Example: “test.htm”.
WebURL is either empty or an indication to the Editor of the web that the document should be saved to. You can use the FrontPage Explorer method vtiGetWebURL to set this parameter. Example: “http://www.microsoft.com”.
WebTitle is either empty or an indication to the Editor of the web that the document should be saved to. You can use the FrontPage Explorer method vtiGetWebTitle to set this parameter. Example: “Microsoft Main Web”.