Description Compares the dib's dimensions to the supported paper sizes of the printer. Returns the identification number of the paper that matches the dimensions of the dib.
Syntax paperCode = [BiDib.] GetStandardPaperSizeFromDib hDib printerName marginOfError isLandscape
Returns paperCode long Which is positive if a paper size is found. If the paper size is not found, the function returns 0 and BitmaniError returns IOK.
In case of an error, the function returns 0 and BitmaniError can be called to retrieve error information.
Remarks |
hDib |
LONGLONG |
Handle for device independent bitmap. |
|
printerName |
String |
Name of the printer. |
|
marginOfError |
float |
Specifies the tolarerance of the paper size comparison. Can range from 1%(0.01) to 99%(0.99). |
|
isLandscape |
Boolean |
Output value, becomes TRUE if the dib is in landscape orientation or FALSE if it is in portrait. |