LlPrinterSetup

Syntax:

INT LlPrinterSetup (HLLJOB hJob, HWND hWnd, UINT nObjType, LPCTSTR lpszObjName);

Task:

Opens a printer selection window and saves the user's selection in the printer definition file.

Parameter:

hJob: List & Label job handle

hWnd: Window handle of the calling program

nObjType:

Value

Meaning

LL_­PROJECT_­LABEL

for labels

LL_­PROJECT_­CARD

for cards

LL_­PROJECT_­LIST

for lists

 

lpszObjName: Valid project file name with path and file extension

Return Value:

Error code

Hints:

Must be called before LlPrint(WithBox)Start(). Allows printer selection without having to perform a printing process (as you must do when using LlPrintOptionsDialog()).

We do not recommend this function, LlPrintOptionsDialog() is much more flexible.

See also:

LlPrintStart, LlPrintWithBoxStart, LlPrintOptionsDialog, LlPrintGetPrinterInfo, LlSetPrinterInPrinterFile