wxRuby Documentation Home

# Wx::PrinterDC

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.

## Derived from

DC

Object

## See also

DC, Printing framework overview

## Methods

- PrinterDC.new

### PrinterDC.new

PrinterDC.new(%(arg-type)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(%(arg-type)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 2023-06-09 00:45:30 +0000]