PtrDevice:XPrinterRes Access/Assign

<< Click to Display Table of Contents >>

Navigation:  RpPrinter & PtrDevice Class Overview > PtrDevice Class >

PtrDevice:XPrinterRes Access/Assign

Previous pageReturn to chapter overviewNext page
Type        ShortInt

Purpose

The access returns the DEVMODE.dmPRINTQUALITY member which indicates the quality of the printed output.  

 

If the return value is positive, it indicates the dots per inch of the printer.  If DEVMODE.dmYRESOLUTION is initialized, dmPRINTQUALITY represents the x-resolution otherwise it represents both the x and y resolutions.  

 

If the member is negative, it represents a device independent resolution.

 

The assign sets the DEVMODE.dmPRINTQUALITY structure member which indicates the quality of the printed output.  

 

If the value is positive, it indicates the dots per inch of the printer.  If the DEVMODE.dmYRESOLUTION is initialized, this affects the x-resolution; otherwise, it affects both the x and y resolutions.

 

If the value is negative, it represents a device independent resolution.

Example

// Is the X printer resolution device independent?

if oPtrDevice:XPrinterRes < 0

         // yes, it is

endif