LlGetProjectParameter

Syntax:

INT LlGetProjectParameter(HLLJOB hJob, LPCTSTR lpszProjectName, LPCTSTR lpszParameter, LPTSTR lpszBuffer, UINT nBufSize);

Task:

Returns the value of the project parameter for the given project file. If the project parameter contains a formula, it is returned as is without being evaluated.

Parameter:

hJob: List & Label Job-Handle

lpszProjectName: Pointer to a string with the project name

lpszParameter: Pointer to a string with the parameter name

lpszBuffer Address of buffer for contents

nBufSize: Maximum number of characters to be copied

Return Value:

Error code

Example:

HLLJOB hJob;
TCHAR Buffer[1024];
hJob = LlJobOpen(0);

LlSetDefaultProjectParameter(hJob, "QueryString",
   "SELECT * FROM PRODUCTS", LL_PARAMETERFLAG_SAVEDEFAULT);
// call up designer


// then before print starts
LlGetProjectParameter(hJob, "c:\\repository\\report.lst", "QueryString", Buffer, 1024);
<... etc ...>
LlJobClose(hJob);

Hints:

This API is especially useful if the project parameter is queried before printing to offer report parametrization to the user.

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

See also:

LlPrintIsVariableUsed, LlPrintIsChartFieldUsed, LlPrintIsFieldUsed