LlPrintEnd

Syntax:

INT LlPrintEnd (HLLJOB hJob, INT nPages);

Task:

Ends the print job.

Parameter:

hJob: List & Label job handle

nPages: Number of empty pages desired after the print

Return Value:

Error code

Hints:

The behavior is described in the programming part of this manual.

Please always use LlPrintEnd() if you have used LlPrintStart() or LlPrintWithBoxStart() and these commands were not aborted with an error, otherwise resource and memory losses may result.

Example:

HLLJOB hJob;
hJob = LlJobOpen(0);

if (LlPrintStart(hJob, LL_PROJECT_LABEL, "test.lbl", LL_PRINT_NORMAL) == 0)
{
   <... etc...>
   LlPrintEnd(hJob, 0);
}
else
   MessageBox(NULL, "error", "List & Label", MB_OK);
LlJobClose(hJob);

See also:

LlPrintStart, LlPrintWithBoxStart, LlPrintFieldsEnd