Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5d

Application v 5.25a

  

 

Chapter Twenty-oneEDGARView Integration (continued)

CompressEIS Function

Overview

The CompressEIS function will take the contents of an EDGARLink XML file and compress it into an Internet Submission (EIS) file.

Syntax/Parameters

Syntax

int = CompressEIS ( string source, string destination );

Parameters

source

A string containing the source filename and path.

destination

A string containing the destination filename and path. The file will be overwritten without warning.

Return Value

An int containing the result as ERROR_NONE (0) or a formatted error code.

Remarks

CompressEIS is designed to take an XML file from and prepare it for the EDGAR website.

Example:

string          fnSRC, fnDST, filters;
int             rc;

filters = "All Files *.*|*.*&EDGARLink XML Submission (*.xml)|*.xml";
fnSRC = BrowseOpenFile("Compress EIS - Source XML File", filters);
if (fnSRC == "") {
  exit;
  }
fnDST = ClipFileExtension(fnSRC);
fnDST = fnDST + ".eis";
filters = "All Files *.*|*.*&EDGARLink Internet Submission (*.eis)|*.eis";
fnDST = BrowseSaveFile("Compres EIS - Destination File", filters, fnDST);
if (fnDST == "") {
  exit;
  }

rc = CompressEIS(fnSRC, fnDST);        
if (IsError(rc)) {
  MessageBox('X', "Conversion Failed %08X", rc);
  }
else {
  MessageBox('I', "Conversion Complete!", rc);
  }

Related Functions

Platform Support

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

Legato IDE