LlSetPrinterDefaultsDir

Syntax:

INT LlSetPrinterDefaultsDir (HLLJOB hJob, LPCTSTR pszDir);

Task:

Sets the path of the printer definition file, e.g. to use user-specific printer settings in a network environment.

Parameter:

hJob: List & Label job handle

pszDir: Path name of the directory

Return Value:

Error code

Example:

HLLJOB   hJob;
hJob = LlJobOpen(0);
LlSetPrinterDefaultsDir(hJob, "c:\\temp\\user");
if (LlPrintStart(hJob, LL_PROJECT_LIST, "c:\\test.lst", LL_PRINT_NORMAL) == 0)
{
   <... etc ...>
   LlPrintEnd(hJob);
}
else
   MessageBox(NULL, "Error", "List & Label", MB_OK);
LlJobClose(hJob);

See also:

LlSetPrinterToDefault, LlPrintStart, LlPrintWithBoxStart, LlPrintCopy­Printer­Confi­guration, LlPrintSetPrinterInPrinterFile