DeleteReports

Deletes one or more reports from the application server.

Syntax

<HsvReports>.DeleteReports varabstrFormNames, nReportFileType, nReportType, pvaralRc

Argument

Description

varabstrFormNames

String array (ByVal). The names of the reports.

nReportFileType

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

nReportType

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

pvaralRc

Variant array. Returns any error numbers thrown by DeleteReports. The following hexadecimal error numbers are explicitly raised by Financial Management:

  • 0x399. Indicates that the user does not have All security access.

  • 0x7c6. Indicates that the user has not been assigned the proper role for deleting reports.

Note that other error codes may be thrown if Financial Management has been improperly installed; these would be errors thrown by Windows or by the database.

Example

DeleteReports is used in the Example for EnumReports.