Printer Object
 
Syntax
 
Printer.TableBorder = vsTableBorderSetings
 
Description
Returns or sets the type of border for tables.
 
he border is drawn using the current pen. Its color, style, and thickness are determined by the PenColor, PenStyle, and PenWidth properties. You may override the pen width using the TablePen property.
 
The picture below shows valid settings for the TableBorder property and their effect:
 
Parameter
Description
vsTableBorderSettings
This parameter contains the following pre-defined constants and values:
Constant
Value
Description
tbNone
0
No borders are drawn
tbBottom
1
Below the header and the table borders are drawn
tbTop
2
Above the header and the table borders are drawn
tbTopBottom
3
Above and below the header, and below the table
tbBox
4
Draws a box around the table
tbColumns
5
A vertical border between each column
tbColTopBottom
6
Above and below the header, and below the table, and between each column, borders are drawn
tbAll
7
All vertical and horizontal borders are drawn
tbBoxRows
8
A horizontal border between each row, and a box surrounding the table are drawn
tbBoxColumns
9
Above and below the header, and below the table, and a box surrounding the table are drawn
tbBelowHeader
10
A border between header and table is drawn
tbRows
11
A horizontal border between each row
 
 
See Also
Example