Printer Object
 
Syntax
 
Printer.PageBorder = vsBorderSettings
 
Description
Returns or sets the type of border to draw around each page.
 
The border is drawn using the current pen. Its color, style, and thickness are determined by the PenColor, PenStyle, and PenWidth properties. The distance between the border and the edges of the page is determined by the MarginLeft, MarginTop, MarginRight, and MarginBottom properties.
 
The picture below shows valid settings for the PageBorder property and their effect:
 
Parameter
Description
vsBorderSettings 
This parameter contains the following pre-defined constants and values:
Constant
Value
Description
pbNome
0
Default. Not any border is drawn on the page.
pbBottom
1
A border is drawn below the page
pbTop
2
A border is drawn above the page
pbTopBottom
3
Borders are drawn above and below the page
pbBox
4
A rectangular box is drawn around the page
pbColums
5
A border is drawn between each column.
pbColTopBottom
6
Draws borders above, below and between each column
pbAll
7
Draws borders around the page and columns.
pbColTop
8
Draws borders above and between columns
pcColBottom
9
Draws borders below and between columns
Note: For single-column documents, settings pbColumns, pbColTopBottom, pbAll, pbColTop, and pbColBottom have the same effect as pbNone, pbBottom, pbTop, pbTopBottom, and pbBox.
See Also
 
Example