Share via


RoutePageBreakFrequency property

Returns or sets how page breaks are inserted or the level of detail for strip maps when printing a route. Read/write GeoPageBreakFrequency.

GeoPageBreakFrequency Value Description
geoPageBreakDay
4
Page breaks inserted after every day on the route
geoPageBreakDistance
5
Page breaks inserted every certain number of miles or kilometers, based on the RoutePageBreakDistance property of the PageSetup object
geoPageBreakMinimum
1
Page breaks not inserted
geoPageBreakMore
2
Strip maps printed at a low altitude with a high level of detail (generating more pages than the standard strip-maps printout)
geoPageBreakStop
3
Page breaks inserted after every stop on the route
geoPageBreakTime
6
Page breaks inserted every certain length of time traveled, based on the RoutePageBreakTime property of the PageSetup object

Applies to

Objects:  PageSetup

Syntax

object.RoutePageBreakFrequency

Parameters

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

Remarks

To set other print options and print the map, use the PrintOut method on the Map object.

Example

    Sub PrintEveryStop()

  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   With objRoute.Waypoints     .Add objMap.FindResults("Seattle, WA").Item(1)     .Add objMap.FindResults("Redmond, WA").Item(1)     .Add objMap.FindResults("Tacoma, WA").Item(1)   End With   objRoute.Calculate
  'Print a page for every stop   objMap.PageSetup.RoutePageBreakFrequency = geoPageBreakStop   objMap.PrintOut PrintArea:=geoPrintDirections
  End Sub

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