Returns a PageWindowEx object for the specified object.
expression.LocatePage(DocumentUrl, ViewMode)
expression Required. An expression that returns an Application object.
DocumentUrl Required. A String that represents the document or file portion of the entire URL. This can be any absolute URL, such as "http://web server/file"
or "file://file system/file"
for disk-based Web sites. The default value is the file portion of the URL.
ViewMode Optional. An FpPageViewMode constant that represents the view mode.
FpPageViewMode can be one of these FpPageViewMode constants. |
fpPageViewDefault default |
fpPageViewHtml |
fpPageViewNoFrames |
fpPageViewNormal |
fpPageViewNoWindow |
fpPageViewPreview |
LocatePage method as it applies to the WebEx object.
Returns the PageWindowEx object associated with the current Web site.
expression.LocatePage(FileUrl, ViewMode)
expression Required. An expression that returns a WebEx object.
FileUrl Required. A String that represents the document or file portion of the entire URL.
ViewMode Optional. An FpPageViewMode constant that represents the view mode.
FpPageViewMode can be one of these FpPageViewMode constants. |
fpPageViewDefault default |
fpPageViewHtml |
fpPageViewNoFrames |
fpPageViewNormal |
fpPageViewNoWindow |
fpPageViewPreview |
Example
This example locates a page in the root Web site and a subsite.
Private Sub LocatePages()
Dim myRootPage As PageWindowEx
Dim myWebPage As PageWindowEx
Set myRootPage = _
Application.LocatePage("Zinfandel.htm", fpPageViewNormal)
Set myWebPage = _
Webs(1).LocatePage("Zinfandel.htm", fpPageViewNormal)
End Sub