Home / comp / gb.qt.ext / printer 
Printer (gb.qt.ext)
This is class is used for printing.

In Gambas the Printer object is a graphic device, so you use the methods of the Draw class to output to it.

Examples

IF Printer.Setup() THEN RETURN

Draw.Begin(Printer) ' Initializes the draw
Draw.Text(TextArea1.Text, 200, 200) ' Prints the contents of a TextArea in the upper left hand corner
Printer.NewPage ' Prints a new page
Draw.Foreground = Color.Red
Draw.Rectangle(500, 200, 32, 32) ' Draws a small red rectangle
Draw.End ' Then send page to the printer

Symbols
This class is static.

Static properties  Static methods  Constants 
ColorMode  Copies  File  FromPage  Height  MaxPage  MinPage  Name  Orientation  Resolution  Size  ToPage  Width    Abort  NewPage  Setup    Black  Color  Landscape  Portrait