Share via


RoutePageBreakTime property

Returns or sets the time interval at which page breaks should be inserted when printing a route. Time is in fractional days; for example, one hour equals 1/24 (or .041666) of a day. Setting RoutePageBreakTime forces the RoutePageBreakFrequency property of the PageSetup object to geoPageBreakTime. Read/write Double.

Applies to

Objects:  PageSetup

Syntax

object.RoutePageBreakTime

Parameters

Part Description
object Required. An expression that returns a PageSetup object.

Remarks

You can use the GeoTimeConstants constants when setting the RoutePageBreakTime property. For example, inserting page breaks every three hours can be set as "3 * geoOneHour".

Example

    Sub PrintEveryHourOfRoute()

  Dim objApp As New MapPoint.Application   Dim objMap As MapPoint.Map   Dim objRoute As MapPoint.Route
  'Set up the application   Set objMap = objApp.ActiveMap   Set objRoute = objMap.ActiveRoute   objApp.Visible = True   objApp.UserControl = True
  'Create a route   objRoute.Waypoints.Add objMap.FindResults("Seattle, WA").Item(1)   objRoute.Waypoints.Add objMap.FindResults("Spokane, WA").Item(1)   objRoute.Calculate
  'Print a new page every hour   objMap.PageSetup.RoutePageBreakFrequency = geoPageBreakTime   objMap.PageSetup.RoutePageBreakTime = 1 * geoOneHour   objMap.PrintOut PrintArea:=geoPrintDirections
  End Sub

Note  This sample code is specific for use in MapPoint North America; it is for illustration purposes only.