LlPrintSetOption

Syntax:

INT LlPrintSetOption (HLLJOB hJob, INT nIndex, INT nValue);

Task:

Sets various print options for the print job or the print options dialog, for example to preset the number of copies required.

Parameter:

hJob: List & Label job handle

nIndex:

LL_PRNOPT_COPIES

Number of copies to be preset in the print dialog box. A value of LL_COPIES_HIDE will hide the "copies" option. The task of supporting copies is described in the programming hints section.

Default: 1

LL_PRNOPT_FIRSTPAGE

First page of the page range that shall be printed. If "All" has been chosen, this is identical to LL_PRNOPT_PAGE.

Default: INT_MIN

LL_PRNOPT_JOBPAGES

Number of pages a print job should contain if you choose LL_PRINT_MULTIJOB in LlPrint[WithBox]Start().

Default: INT_MAX

LL_PRNOPT_LASTPAGE

Page number of the last page to be printed.

Default: INT_MAX

LL_PRNOPT_OFFSET

Position of the first label in the label array. The position the number refers to is defined by the print order.

Default: 0

LL_PRNOPT_PAGE

Page number of the first page printed by List & Label. If this should not be selectable, LL_PAGE_HIDE is the value to be passed.

Default: 1

LL_PRNOPT_PRINTDLG_ALLOW_NUMBER_OF_FIRST_PAGE

In the print dialog, this option determines the page number that starts on the first printed page, e.g. if you already have a cover page or other pages with page numbers.

Default: 0

LL_PRNOPT_PRINTDLG_ONLYPRINTERCOPIES

The print options dialog will only allow a copies value to be entered if the printer supports copies.

Caution: the printer copies may not be useful for labels, as these may need programmer's copies support instead of the printer's. See chapter "Copies".

Default: FALSE

LL_­PRNOPT_­UNITS

Returns the same value as LlGetOption(..., LL_OPTION_UNITS).

nValue: Sets the option corresponding to the nIndex

Return Value:

Error code

See also:

LlPrintStart, LlPrintWithBoxStart, LlPrintGetOption, LlPrintOptionsDialog