GetReport

Returns the definition of a report as well as the report’s security class ID and description. The report definition is returned as an array of bytes.

Syntax

<HsvReports>.GetReport bstrName, nReportFileType, nReportType, plSecurityClass, pbstrDescription, pvarabyFile

Argument

Description

bstrName

String (ByVal). The name of the report. The report must exist on the application server.

nReportFileType

Integer (ByVal). Identifies the file type of the report. Pass one of the constants listed in Document File Type Constants.

nReportType

Integer (ByVal). Identifies the type of report. Pass one of the constants listed in Document Type Constants that represent report types.

plSecurityClass

Long. Returns the ID number of the report’s security class.

Tip:

You can get the name of the security class by passing this ID to GetSecurityClassLabel. For details, see GetSecurityClassLabel.

pbstrDescription

String. Returns the description of the report.

pvarabyFile

Variant array. Returns the report’s definition. The array is returned as a Byte subtype.

Example

The following example prints the definition of a journal report named Monthly to Visual Basic’s Immediate window.

Dim lSecID As Long, sDesc As String, vabyDef
'm_cReports is an HsvReports object reference
m_cReports.GetReport "Monthly", WEBOM_DOCFILETYPE_RPTDEF, _
   WEBOM_DOCTYPE_RPTJOURNAL, lSecID, sDesc, vabyDef
Debug.Print CStr(vabyDef)