StartPage property

StartPage property

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Specifies the start page number when you save a range of document pages as a Web page.

        
          retLong = object.StartPage
object. StartPage = valLong

retLong

Long. The current start number of the range of pages that you specify to save as a Web page.

object

Required. An expression that returns a VisPageWebSettings object.

valLong

Required Long. The new start number of the range of pages that you specify to save as a Web page.

Remarks

The end page number is specified in the EndPage property.

The StartPage property value corresponds to the value in the Page number control on the General tab in the Save As Web Page dialog box (on the File menu, select Save as Web Page, and then click Publish).

Example

The following macro demonstrates saving a range of pages (2–3) in a drawing as a Web page rather than the complete drawing. The TabControl property is also set to True so that page tabs appear in the drawing.

  Public Sub saveAsWeb()
  Dim saveAsWeb As VisSaveAsWeb
  Dim webSettings As VisWebPageSettings
  
  Set saveAsWeb = New VisSaveAsWeb
  Set webSettings = saveAsWeb.WebPageSettings
     webSettings.StartPage = 2
     webSettings.EndPage = 3
     webSettings.TabControl = True
     webSettings.TargetPath = "c:\temp\orgchart.htm"
     saveAsWeb.CreatePages
  End Sub