LlPrintDbGetCurrentTableRelation

Syntax:

INT LlPrintDbGetCurrentTableRelation(HLLJOB hJob, LPTSTR pszRelationID, UINT nRelationIDLength);

Task:

Queries the ID of the current subrelation to be printed. The ID can also be empty if a subtable has been inserted in the Designer using a filter. In this case your code should ideally pre-filter the table at database level (faster) or alternatively iterate the entire table and leave the filtering to List & Label (much slower).

Parameter:

hJob: List & Label job handle

pszRelationID: Buffer in which the string is to be stored.

nRelationIDLength: Size of buffer.

Return Value:

Error code

Hints:

See the hints in chapter Printing Relational Data.

See chapter Important Remarks on the Function Parameters of DLLs concerning the buffer return value.

See also:

LlDbAddTable, LlDbAddTableRelation, LlDbAddTableSortOrder, LlPrintDbGet­CurrentTable, LlPrintDbGetCurrentTableSortOrder