Syntax:
INT LlSetPrinterToDefault (HLLJOB hJob, UINT nObjType, LPCTSTR lpszObjName);
Task:
Deletes the printer definition file, so that List & Label uses the default printer set in the project the next time the project is used.
Parameter:
hJob: List & Label job handle
nObjType: LL_PROJECT_LABEL, LL_PROJECT_CARD or LL_PROJECT_LIST
lpszObjName: The file name of the project with file extension
Return Value:
Error code
Hints:
The default printer in the preview can be set with LL_OPTION_FORCE_DEFAULT_PRINTER_IN_PREVIEW.
Example:
HLLJOB hJob;
hJob =
LlJobOpen(0);
LlSetPrinterToDefault(hJob, LL_PROJECT_LIST,
"test.lst");
if (LlPrintStart(hJob, LL_PROJECT_LIST, "test.lst",
LL_PRINT_NORMAL) == 0)
{
<... etc
...>
LlPrintEnd(hJob);
}
else
MessageBox(NULL, "Error", "List & Label", MB_OK);
LlJobClose(hJob);
See also:
LlSetPrinterDefaultsDir, LlPrintStart, LlPrintWithBoxStart