A printer device context is specific to Windows, and allows access to any printer with a Windows driver. See DC for further information on device contexts, and DC#get_size for advice on achieving the correct scaling for the page.
DC, Printing framework overview
PrinterDC.new(PrintData printData)
Pass a PrintData object with information necessary for setting up a suitable printer device context. This is the recommended way to construct a PrinterDC. Make sure you specify a reference to a PrintData object, not a pointer – you may not even get a warning if you pass a pointer instead.
PrinterDC.new(String driver, String device, String output,
Boolean interactive = true,
Integer orientation = PORTRAIT)
Constructor. With empty strings for the first three arguments, the default printer dialog is displayed. device indicates the type of printer and output is an optional file for printing to. The driver parameter is currently unused. Use the Ok member to test whether the constructor was successful in creating a usable device context.
This constructor is deprecated and retained only for backward compatibility.
[This page automatically generated from the Textile source at Thu May 01 00:50:42 +0100 2008]