O'Reilly logo

VB & VBA in a Nutshell: The Language by Paul Lomax

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

A.16. Printer Object[2]

[2] Not available in hosted versions of VBA

Circle Method

Draws a circle, ellipse, or arc on the current object

ColorMode Property

Returns or sets the color mode of a color printer

Copies Property

Returns or sets the number of copies of the current document to print

CurrentX Property

Returns or sets the horizontal coordinates for next print or draw method

CurrentY Property

Returns or sets the vertical coordinates for next print or draw method

DeviceName Property

Returns or sets the name of the device the current printer driver supports

DrawMode Property

Returns or sets the appearance of output from graphics methods or of a Shape or Line control

DrawStyle Property

Returns or sets the line style for output from graphics methods

DrawWidth Property

Returns or sets the line width for output from graphics methods

DriverName Property

Returns or sets the name of the driver for a Printer object

Duplex Property

Returns or sets a value to determine whether a page is printed on both sides

EndDoc Method

Closes the current printer buffer, outputs the buffer to the printer, and resets the printer object

FillColor Property

Returns or sets the color used to fill in shapes, circles, and boxes

FillStyle Property

Returns or sets the fill style of a shape

Font Property

Returns a Font object

FontBold Property

Returns or sets the current font to bold

FontCount Property

Returns the number of fonts available to the current printer object

FontItalic ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required