LlPreviewDeleteFiles

Syntax:

INT LlPreviewDeleteFiles (HLLJOB hJob, LPCTSTR lpszObjName, LPCTSTR lpszPath);

Task:

Deletes the temporary file(s) which have been created by the preview print.

Parameter:

hJob: List & Label job handle

lpszObjName: Valid file name with extension and without path

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

Return Value:

Error code

Hints:

Should always be called after LlPreviewDisplay(), as the preview files are generally only valid momentarily.

Of course, if you want to archive, send or print them at a later time, this should NOT be called.

See also:

LlPrintStart, LlPrintWithBoxStart, LlPreviewDisplay, LlPrintEnd, LlPreviewSet­TempPath