LlStgsysGetJobOptionValue

Syntax:

INT LlStgsysGetJobOptionValue (HLLSTG hStg, INT nOption);

Task:

Returns certain numerical parameters for the current job.

Parameter:

hStg: The handle returned by LlStgsysStorageOpen()

nOption: Chooses the meaning of the return value

Return value:

>=0: Value
<0: Error code

Hints:

These values are invaluable if you wish to create your own preview and print management, especially if the destination printers are different from the original.

To get the correct value, set the job with LlStgsysSetJob() before calling this API function.

nOption can have the following values:

LS_OPTION_BOXTYPE

Returns the style of the meter box used at the time of the preview print (and which should also be used during printing). This is one of the constants LL_BOXTYPE_xxx (see LlPrintWithBoxStart()), or -1 if no box had been used (LLPrintStart()).

LS_OPTION_UNITS

Returns the units chosen for the project, see LL_PRNOPT_UNIT.

LS_OPTION_PRINTERCOUNT

Number of printers used

See also:

LlStgsysSetJob