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.
For example:
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
This class is static.