Member
|
Description
|
form
|
The size, in device pixels, of the form currently selected for use by the printer.
|
PageMargins
|
A rectangle in device pixels that depicts the area reserved by the user for margins. The 'left' property stores the width in pixels of the left margin. The 'right' property stores the width in pixels of the right margin. Top and bottom follow likewise.
|
HardwareMargins
|
A rectangle in device pixels that depicts the area of unusable space on the page. The 'left' property stores the width in pixels of the left margin. The 'right' property stores the width in pixels of the right margin. Top and bottom follow likewise.
|
dpi
|
The horizontal and vertical dots-per-inch resolution of the printer
|
IsColorDevice
|
This is non-zero when the printer has color capabilities
|
TemplateMargins
|
A rectangle in device pixels that depicts the area reserved by the print template for margins. The 'left' property stores the width in pixels of the left margin. The 'right' property stores the width in pixels of the right margin. Top and bottom follow likewise.
|
size_how
|
A value that determines how the print area is calculated on the page, and whose meaning is as follows:
Constant
|
Meaning
|
SSPI_SIZE_BYMAX
|
The print area is maximized on the page, while preserving the aspect ratio
|
SSPI_SIZE_BYWIDTH
|
The width is maximized on the page and the height is scaled appropriately to preserve the aspect ratio
|
SSPI_SIZE_BYHEIGHT
|
The height is maximized on the page and the width is scaled appropriately to preserve the aspect ratio
|
SSPI_SIZE_BYSCALE
|
The print area is scaled proportionally to conform with a scaling factor. The aspect ratio is preserved.
|
|
size_width
|
Width of print (in inches) if size_how is SSPI_SIZE_BYWIDTH
|
size_height
|
Height of print (in inches) if size_how is SSPI_SIZE_BYHEIGHT
|
size_drwinches
|
Drawing scaling term (in inches) if size_how is SSPI_SIZE_BYSCALE
|
size_prninches
|
Printer scaling term (in inches) if size_how is SSPI_SIZE_BYSCALE
|
justify
|
A bit flag that determines how to justify the printable area on the page, and whose meaning is as follows:
Constant
|
Meaning
|
SSPI_JUSTIFY_LEFT
|
The print is horizontally aligned to the left edge
|
SSPI_JUSTIFY_HCENTER
|
The print is horizontally centered
|
SSPI_JUSTIFY_RIGHT
|
The print is horizontally aligned to the right edge
|
SSPI_JUSTIFY_TOP
|
The print is vertically aligned to the top edge
|
SSPI_JUSTIFY_VCENTER
|
The print is vertically centered
|
SSPI_JUSTIFY_BOTTOM
|
The print is vertically aligned to the bottom edge
|
|
EnablePageBorder
|
When this value is non-zero a border is drawn around the page margins.
|
PageBorderPen
|
When 'EnablePageBorder' is non-zero this field contains information about the pen that will be used to draw a border at the page margins.
|
EnableWindowBorders
|
When this value is non-zero a border is drawn around every window on the current screen. In a 4-way split, for instance, there will be 4 rectangles drawn, one for each window.
|
EnableWindowBackground
|
When this value is non-zero the background will be drawn to the printer. When this value is zero, the page color will serve as the background for the print.
|
EnablePreviewHides
|
When this value is non-zero hidden-surface algorithms will be applied during print previews.
|
TemplatePath
|
Folder where the print template is located, or an empty string if none is in use.
|
TemplateName
|
File name and extension of the print template, or an empty string if none is in use.
|
EnableTemplateBorder
|
When this value is non-zero a border is drawn around the template margins.
|
TemplateBorderPen
|
When 'EnableTemplateBorder' is non-zero this field contains information about the pen that will be used to draw a border at the template margins.
|