LlAssociatePreviewControl

Syntax:

INT LlAssociatePreviewControl(HLLJOB hJob, HWND hWndControl, UINT nFlags);

Task:

Associates a LL job to a preview control.

Parameters:

hJob: List & Label job handle

hWnd: window handle

nFlags:

Value

Meaning

LL_ASSOCIATE­PREVIEW­CONTROL­FLAG_­DELETE_­ON_­CLOSE

Automatically delete preview file when preview is closed

LL__ASSOCIATEPREVIEW­CONTROL­FLAG_HANDLE_­IS_­ATTACH­INFO

Informs the API, that the passed window handle is a pointer to a structure containing drilldown information

LL_ASSOCIATEPRE­VIEW­CONTROL­FLAG_­PRV_­REPLACE

If LL_ASSOCIATE­PREVIEW­CONTROL­FLAG_­HANDLE_­IS_ATTACHINFO is not set: the current preview will be replaced by this preview

LL_ASSOCIATEPREVIEW­CONTROL­FLAG_­PRV_­ADD_­TO_­CONTROL_­STACK

If LL_ASSOCIATE­PREVIEW­CONTROL­FLAG_­HANDLE_­IS_ATTACHINFO is not set: this preview is added to the current preview tab

LL_ASSOCIATEPREVIEW­CONTROL­FLAG_­PRV_­ADD_­TO_­CONTROL_­IN_­TAB

If LL_ASSOCIATE­PREVIEW­CONTROL­FLAG_­HANDLE_­IS_ATTACHINFO is not set: this preview is added to the current preview window in a new tab

If necessary combined with 'or'.

Return Value:

Error code

Hints:

See chapter Direct Print and Export From the Designer.

Example:

See chapter Direct Print and Export From the Designer.