LlPrintGetOption

Syntax:

INT LlPrintGetOption (HLLJOB hJob, INT nIndex);

Task:

Returns the various print options which are set by the user in the LlPrint­Options­Dialog().

Parameter:

hJob: List & Label job handle

nIndex: One of the values listed below

Return Value:

Setting chosen by the user

Hints:

In addition to the constants listed for LlPrintSetOption(), there are several modified or additional (read-only) settings:

LL_PRNOPT_COPIES_SUPPORTED

Returns a flag indicating whether the currently selected copies count is supported by the printer (this is usually important for list projects only).

Important: This function will - if successful - set the printer copies in the driver!

If it is not successful, the LL_PRNOPT_COPIES must be set to 1 and the copies must be made manually, if needed.

LL_PRNOPT_UNIT

This option returns the measurement units set in the system settings. Returned values are one of the following constants:

Value

Meaning

LL_­UNITS_­MM_­DIV_­10

1/10 mm

LL_UNITS_MM_DIV_100

1/100 mm (default on metric systems)

LL_UNITS_MM_DIV_1000

1/1000 mm

LL_UNITS_INCH_DIV_100

1/100 inch

LL_UNITS_INCH_DIV_1000

1/1000 inch (default on imperial systems)

LL_UNITS_SYSDEFAULT_­LORES

Default low resolution on the system

LL_UNITS_SYSDEFAULT_­HIRES

Default high resolution on the system

LL_UNITS_SYSDEFAULT

Default resolution on the system

 

LL_­PRNOPT_­USE2PASS

Returns if the printing process uses the two-pass method, because the TotalPages$() function has been used.

LL_PRNOPT_PRINTORDER

Returns the print order of the (labels/file cards) in the project. Default: LL_PRINTORDER_HORZ_LTRB (horizontal, from top left to bottom right)

LL_PRNOPT_DEFPRINTERINSTALLED

Returns a flag indicating whether the operating system has a default printer

LL_­PRNOPT_­JOBID

Use this option after LlPrint() to determine the job number of the print job from the spooler.

This ID can be used with the Windows-API functions to control the execution of the print job.

See also:

LlPrintSetOption, LlPrintOptionsDialog, LlPrintGetOptionString