LlPrintStart

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 LlPrintSetOption­String(LL_­PRN­OPT­STR_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