Programmer Reference : Common Printing : Using a printer shell : CwPrinterShell resources and convenience methods
CwPrinterShell resources and convenience methods
The following CwPrinterShell resource methods provide useful information related to printing:
screen
The printer screen on which the printer shell resides
height
The read-only height of the printable area of a page, in pixels
width
The read-only width of the printable area of a page, in pixels
x
The read-only x-coordinate of the upper-left corner of the widget, in relation to the printable area of a page
y
The read-only y-coordinate of the upper-left corner of the widget, in relation to the printable area of a page
title
The document title, used by startJob to identify the current job
jobAttributes
The job attributes for the current print job
resolution
The read-only horizontal @ vertical resolution of the shell, in dots per inch (DPI)
pageNumber
The current logical page number
The following CwPrinterShell convenience methods are also useful:
display
The CgDisplay on which the printer shell created.
window
The CgWindow associated with the printer shell.
Tip:
If necessary, device-specific data can be sent directly to a printer, one byte at a time using the CwPrinterShell method sendRawPrinterData:.
Last modified date: 01/29/2015