# EsbEndReport

Description

EsbEndReport() marks the end of a report specification being sent to the active database. This function must be called after sending the report specification (using EsbSendString()) and before reading any returned data (using EsbGetString()).

Syntax

    EsbEndReport (hCtx)

    ByVal hCtx As Long

Parameters

hCtx | Essbase VB API context handle.

Return Value

None.

Notes

- This function must be preceded by a call to EsbBeginReport(), and at least one call to EsbSendString().
- If the output flag is TRUE for the call to EsbBeginReport() that begins the report sequence, the call to EsbEndReport() must be followed by repeated calls to EsbGetString() until an empty string is returned.

Access

This function requires the caller to have read privilege (ESB_PRIV_READ) to one or more members in the active database.

Example

    Declare Function EsbEndReport Lib "ESBAPIW" (ByVal hCtx As Long) As Long
    See the example  for EsbBeginReport().

See Also

EsbBeginReport()
EsbGetString()
EsbSendString()