CALL "WIN$PRINTER" USING WINPRINT-PRINT-BITMAP WINPRINT-DATA GIVING returnCode |
WINPRINT-PRINT-BITMAP | Constant | ||
WINPRINT-DATA Group Item | Structure that contains the information to be passed to the function. This group item, defined in isprint.def, has the following structure: | ||
01 winprint-data. 03 wprtdata-print-bitmap. 05 wprtdata-bitmap pic x(4) comp-n. 05 wprtdata-bitmap-row pic 9(7)v99 comp-5. 05 wprtdata-bitmap-col pic 9(7)v99 comp-5. 05 wprtdata-bitmap-height pic 9(7)v99 comp-5. 05 wprtdata-bitmap-width pic 9(7)v99 comp-5. 05 wprtdata-bitmap-flags unsigned-short. | |||
wprtdata-bitmap Specifies the handle of the bitmap to be printed. Do not destroy this handle before closing the print file. | |||
wprtdata-bitmap-row Specifies the vertical coordinate of top-left corner of the bitmap, in cells. The position refers to the physical left margin. | |||
wprtdata-bitmap-col Specifies the horizontal coordinate of top-left corner of the bitmap, in cells. The position refers to the physical left margin. | |||
wprtdata-bitmap-height Specifies the height of the printed image. | |||
wprtdata-bitmap-width Specifies the width of the printed image. | |||
wprtdata-bitmap-flags Specifies the units of measure for location (wprtdata-bitmap-row and wprtdata-bitmap-col) and dimensions (wprtdata-bitmap-width and wprtdata-bitmap-height) of the bitmap. The value is the sum of location unit and scale unit. | |||
WPRTBITMAP-SCALE-CELLS | Scale values are expressed in cells. | ||
WPRTBITMAP-SCALE-INCHES | Scale values are expressed in inches. | ||
WPRTBITMAP-SCALE-CENTIMETERS | Scale values are expressed in centimeters. | ||
WPRTBITMAP-SCALE-PIXELS | Scale values are expressed in pixels. | ||
WPRTBITMAP-UNITS-INCHES | Location values are expressed in inches. | ||
WPRTBITMAP-UNITS-CENTIMETERS | Location values are expressed in centimeters. | ||
WPRTBITMAP-UNITS-PIXELS | Location values are expressed in pixels. | ||
WPRTBITMAP-PRINTER-BITMAP | Keep the original bitmap dimensions, don’t scale the bitmap. |
1 | Operation successful. |
WPRTERR-UNSUPPORTED | The WIN$PRINTER library routine is not supported. |
WPRTERR-BAD-ARG | The WIN$PRINTER library routine has been called with bad parameters. |