Please enable JavaScript to view this site.

A-Shell Reference

xcall MIAMEX, MX_GDICALC, MXGDI_OPENPTR, handle, status, printer, mapmode {,length, width}

Establishes a printer context, returning a handle to it which must be passed to all the other MX_GDICALC operations.

Parameter

Type

I/O

Description

handle

B,4

in/out

Name to be used for other MX_GDICALC operations.

status

F,6

out

MX_GDICALC Status Codes.

printer

String

in

Any form of printer name allowed by SPOOL.SBR—e.g. a null string for the A-Shell or Windows default; a printer ini file name, a printer share name, or a printer local driver name.

mapmode

String

in

One of the map modes allowed in the GDI //SETMAPMODE statement (LOENGLISH, HIENGLISH, LOMETRIC, HIMETRIC, TEXT, TWIPS, DECIPOINTS).

length, width

Num

out

If specified, the page length/width (in the specified map mode units) will be returned here.