LlPreviewDisplayEx

Syntax:

INT LlPreviewDisplayEx (HLLJOB hJob, LPCTSTR lpszObjName, LPCTSTR lpszPath, HWND hWnd, UINT nOptions, LPVOID pOptions);

Task:

Starts the preview. Additional options can define the behavior.

Parameter:

hJob: List & Label job handle

lpszObjName: Valid file name with file extension and without path name

lpszPath: Valid path of the preview files ending with a backslash "\".

hWnd: Window handle of the calling program

nOptions:

Value

Meaning

LL_­PRVOPT_­PRN_­USEDEFAULT

Preview uses the system's default printer

LL_­PRVOPT_­PRN_­ASKPRINTERIFNEEDED

If the printer that is stored in the preview file (i.e. the printer that has been used for the preview print process) is not found in the current computer's printers, a printer dialog is shown so that the user can select the printer.

LL_­PRVOPT_­PRN_­ASKPRINTERALWAYS

A printer dialog will allow the user to choose his default printer for the preview.

 

pOptions: Reserved, set to NULL or "".

Return Value:

Error code

Hints:

The preview is a window that can be started independently of the Designer. It shows the data printed by the preview print process.

If lpszPath is empty, the path of the project file is used.

See also:

LlPrintStart, LlPrintWithBoxStart, LlPreviewDeleteFiles, LlPreviewSetTempPath, LlPreviewDisplay