In Microsoft Office SharePoint Designer, it is possible to create a windowless environment to cut down on User Interface (UI) overhead, but there are some drawbacks to working in such an environment. For example, opening a page with the ViewMode property set to PageViewNoWindow, creates a windowless environment where window elements that require the UI will not work correctly. If you open a page without a window and try to access it using code such as PageWindow.Document.ParentWindow, the resulting code returns nothing instead of returning a DesignerWindow object. The following statements provide access to windowless pages.
Application.LocatePage(DocumentUrl As String, _
ViewMode As PageViewMode) As PageWindow
Web.LocatePage(DocumentUrl As String, ViewMode As PageViewMode) _
As PageWindow
File.Edit(ViewMode As PageViewMode) As PageWindow
The following table describes the PageWindow methods and properties and the objects or error messages they return. Some methods and properties of the PageWindow object are disabled in a windowless environment and will return the results shown in the following table.
Disabled Method or Property of the PageWindow Object
Returned Object or Error Message
ActiveDocument
Returns "object or with variable not set" error message.
ActiveFrameWindow
Returns "object or with variable not set" error message.