Printer

This is class is used for printing.

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

In Gambas, the Printer object is a graphics device, so you use the Draw methods to output to it. Example:

   Draw.begin(Printer) ' initialize draw object
   Draw.text(TextArea1.text,200,200) ' print contents of a TextArea in upper left hand corner
   Draw.end ' send page to printer


Referenced by :