Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5d

Application v 5.25a

  

 

Chapter Twenty-oneEDGARView Integration (continued)

EDGARArchiveGetDocFile Function

Overview

The EDGARArchiveGetDocFile function retrieves a specified file from the archive and saves a copy in a specified location.

Syntax/Parameters

Syntax

int = EDGARArchiveGetDocFile ( handle hArchive, int index, string destination );

Parameters

hArchive

A handle that specifies the EDGAR Archive opened with EDGARArchiveOpen function.

index

An integer specifying a file entry in the mapped object.

destination

A string containing a path or fully qualified filename. If the filename is omitted, the document filename is used in conjunction with the path as a destination file.

Return Value

An int specifying the result as ERROR_NONE (0) or a formatted error code. The error code can indicate a problem with the object handle, object content or the destination file.

Remarks

The EDGARArchiveGetDocFile extracts the file from the encoded archive. There is no warning or error on overwriting the destination file.

Related Functions

Platform Support

Go13, Go16, GoFiler Complete, GoFiler Corporate, GoFiler, GoFiler Lite, GoXBRL

Legato IDE, Legato Basic