Printer
Object List Next Object
Definition:
Provides access to Windows printers. It also allows you to control the
appearance of text and graphics that are printed on a page.
Specialized Features:
The following tables list and describe the properties, methods, and events
that are added by Printer:
Properties Use to...
BevelInner Determine how the inner border is drawn.
BevelOuter Determine how the outer border is drawn.
BevelWidth Set or return the size of the bevel style for both BevelInner and BevelOuter.
BorderWidth Set or return the space between the two bevels.
CurrentX Specify the horizontal coordinate of printing and drawing methods. This value
can be set to affect the next output method, or can be used after the method
completes to determine the extent of the output method.
CurrentY Specify the vertical coordinate of printing and drawing methods. This value
can be set to affect the next output method, or can be used after the method
completes to determine the extent of the output method.
DrawColor Control the line color of drawing methods that use a pen.
DrawMode Control how drawing operations affect drawable objects.
DrawStyle Control the line style of drawing methods that use a pen.
DrawWidth Control the line thickness of drawing methods that use a pen.
FillColor Determine the color used to fill the inside of items that are drawn using a
brush.
FillStyle Determine the pattern used to fill the inside area of items drawn using a
brush.
Font Reference the font object, which determines the appearance of the font.
hDC Provide a Handle Device Context of an object.
Height Height of the page in twips (read only).
Outlined Include a black border line around the outside of the object.
Page Determine the current page number.
ScaleHeight Determine the internal vertical measurement of a form.
ScaleLeft Determine the horizontal coordinate for the left edge of a form.
ScaleMode Specify the standard unit of measurement to be used for coordinates of a
printer.
ScaleTop Determine the vertical coordinate for the top edge of a form.
ScaleWidth Determine the internal horizontal measurement of a form.
TwipsPerPixelX Specify how many twips per pixel to use for the object's horizontal
measurement.
TwipsPerPixelY Specify how many twips per pixel to use for the object's vertical measurement.
Width Width of the page in twips (read only).
Methods Use to...
AngleArc Draw an elliptical arc using the current pen.
Arc Draw a line segment and an arc.
Chord Draw a chord.
Cls Clear the page.
Ellipse Draw an ellipse or circle.
EndDoc End the current document (start a new document and page).
GetPicture Get a picture of the current page.
GetSizedPicture Get a picture of a specific height and width.
LineTo Draw a line from CurrentX, CurrentY to user- specified coordinates.
MoveTo Set CurrentX, CurrentY to specific coordinates.
NewPage Create a new page, incrementing the page number.
Pie Draw a v-shaped wedge.
PolyBezier Draw one or more bezier splines.
Polygon Draw a polygon that is filled and automatically closed.
Polyline Draw line segments in a series. The lines are not filled or closed.
PostClip Put the Printer’s print page into Windows’ ClipBoard
PrintForm Draw any form onto the current page.
PrintPage Send the current page to the printer.
PrintPicture Draw an Enhanced Metafile (supplied by an XferData Object), filling the entire
page.
PrintSizedPicture Draw an Enhanced Metafile (supplied by an XferData Object), in a given
rectangle on the page.
PrintWindow Draw the client area of any window on the current page.
Rectangle Draw a rectangle using the given coordinates.
RoundRect Draw a rectangle with rounded corners using the given coordinates.
Scale Define the coordinate system using a scale of your choice.
Setup Configure Phoenix's reference to your printer and set printer options.
TextOut Draw the specified text at current point, in the current font.
TextUnload Write a text representation of a window.
Events Use to...
Paint Run an interpretive method when repainting is necessary.
Copied Features:
None
this is a top-level object.
Details:
The Printer object provides access to Windows printers. The default system
printer is used, or another printer may be selected using the Setup method.
Graphics can be drawn and scaled onto a cached printer page using the same methods
you would use to draw on a Form or PictureBox. Text can be output using the Print
method. Bitmap images of whole Forms or controls can be drawn using PrintForm
or PrintWindow. The page can be sent to the printer using PrintPage or, using
the GetPicture method, viewed with an Image control.
Normally, the windows print spooler saves printed pages until the EndDoc
method is called, at which point the completed document is queued for output to the
printer device.
If no system printer exists, a screen device context is used instead, with a
simulated page size of 8.5 x 11 inches. In this case, PrintPage and EndDoc have
no real effect.