<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../../style.css">
<title>
Gambas Documentation - Printer
 (gb.qt)</title>
</head>
<table class="none" width="100%" cellpadding="0" cellspacing="0" border="0">
<tr><td align="left">
<font size="-1">
<a href="../../../help+en"><img class="flag" alt="Home" border="0" src="../../../img/lang/en.png" align="center"></a>&nbsp;
<a href="../gb.qt+en">Up</a>&nbsp;
<a href="picturebox/_new+en">Previous</a>&nbsp;
<a href="printer/abort+en">Next</a>&nbsp;
</td></tr></table>
<div class="notab">
<h1>
Printer
 (gb.qt)</h1>
This is class is used for printing.
<p>
In <a href="../../def/gambas+en">Gambas</a> the Printer object is a graphic device, so you use the methods of the <a href="draw+en">Draw</a> class to output to it.
<p>
<div class="gray"><font size="-2"><b>Example</b></font></div>
<pre class="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</pre>
<p>
<div class="black"><font size="-2"><b>Symbols</b></font></div>
<div class="border">
This class is static.<br>
<hr><table class="none" cellspacing="0" cellpadding="0">
<tr>
<td align=left><b>Static&nbsp;properties</b></td><td width="32">&nbsp;</td>
<td align=left><b>Static&nbsp;methods</b></td><td width="32">&nbsp;</td>
<td align=left><b>Constants</b></td><td width="32">&nbsp;</td>
</tr>
<tr valign=top>
<td>
<b><a class="none" href="printer/colormode+en">ColorMode</a></b>&nbsp;&nbsp; <b><a class="none" href="printer/copies+en">Copies</a></b>&nbsp;&nbsp; <b><a class="none" href="printer/file+en">File</a></b>&nbsp;&nbsp; <b><a class="none" href="printer/frompage+en">FromPage</a></b>&nbsp;&nbsp; <b><a class="none" href="printer/height+en">Height</a></b>&nbsp;&nbsp; <b><a class="none" href="printer/maxpage+en">MaxPage</a></b>&nbsp;&nbsp; <b><a class="none" href="printer/minpage+en">MinPage</a></b>&nbsp;&nbsp; <b><a class="none" href="printer/name+en">Name</a></b>&nbsp;&nbsp; <b><a class="none" href="printer/orientation+en">Orientation</a></b>&nbsp;&nbsp; <b><a class="none" href="printer/resolution+en">Resolution</a></b>&nbsp;&nbsp; <b><a class="none" href="printer/size+en">Size</a></b>&nbsp;&nbsp; <b><a class="none" href="printer/topage+en">ToPage</a></b>&nbsp;&nbsp; <b><a class="none" href="printer/width+en">Width</a></b>&nbsp;&nbsp; </td><td>&nbsp;</td>
<td>
<b><a class="none" href="printer/abort+en">Abort</a></b>&nbsp;&nbsp; <b><a class="none" href="printer/newpage+en">NewPage</a></b>&nbsp;&nbsp; <b><a class="none" href="printer/setup+en">Setup</a></b>&nbsp;&nbsp; </td><td>&nbsp;</td>
<td>
<b><a class="none" href="printer/black+en">Black</a></b>&nbsp;&nbsp; <b><a class="none" href="printer/color+en">Color</a></b>&nbsp;&nbsp; <b><a class="none" href="printer/landscape+en">Landscape</a></b>&nbsp;&nbsp; <b><a class="none" href="printer/portrait+en">Portrait</a></b>&nbsp;&nbsp; </td><td>&nbsp;</td>
</tr>
</table>
</div>

</div>
</body>
</html>

