Syntax:
INT LlPrintStart (HLLJOB hJob, UINT nObjType, LPCTSTR lpszObjName, INT nPrintOptions, INT nReserved);
Task:
Starts the print job, loads the project definition.
Parameter:
hJob: List & Label job handle
nObjType: LL_PROJECT_LABEL, LL_PROJECT_LIST or LL_PROJECT_CARD
lpszObjName: The file name of the project with file extension
nPrintOptions: Print options
Value |
Meaning |
LL_PRINT_NORMAL |
output to printer |
LL_PRINT_PREVIEW |
output to preview |
LL_PRINT_FILE |
output to file |
LL_PRINT_EXPORT |
output to an export module that can be defined with LlPrintSetOptionString(LL_PRNOPTSTR_EXPORT) |
Optionally combined with LL_PRINT_MULTIPLE_JOBS: output in several smaller print jobs (see below) with network spooler print.
nReserved: for future extensions
Return Value:
Error code
Hints:
Please check the return value!
nPrintOptions for LL_PRINT_NORMAL can be combined with 'or' using LL_PRINT_MULTIPLE_JOBS so that the print job can be split into several smaller individual jobs. The number of the page after which the job should split can be set with LlPrintSetOption().
No abort dialog box is displayed, see LlPrintWithBoxStart().
Example:
HLLJOB hJob;
hJob = LlJobOpen(0);
if
(LlPrintStart(hJob, LL_PROJECT_LABEL, "test.lbl",
LL_PRINT_NORMAL) == 0)
{
<... etc ...>
LlPrintEnd(hJob);
}
else
MessageBox(NULL, "Error", "List
& Label", MB_OK);
LlJobClose(hJob);
See also:
LlPrintWithBoxStart, LlPrintEnd, LlPrintSetOption