Consultor Eletrônico



Kbase P10269: Report Builder fails to read LibDir environment variable fro
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   2/17/2004
Status: Verified

FACT(s) (Environment):

Progress 9.1x

SYMPTOM(s):

Report Builder fails to read the LibDir environment variable from a ini file.

Report Builder looks at the Registry when trying to read this variable.

CAUSE:

Once the rbstart.pf file is read, it is too late to tell the Report Engine where to look for a .ini file or registry entry.

FIX:

The best way to get around this limitation is to read the LibDir setting manually from the Progress.ini file. The report file name can then be appended to the LibDir to form the full path name of the report file.

DEF VAR libdir AS CHAR.

/* Point to the ini file */
LOAD "progress.ini" BASE-KEY "INI".
USE "progress.ini".

/* Grab the LibDir setting */
GET-KEY-VALUE SECTION "ReportBuilderDefaults" KEY "LibDir" VALUE libdir.

/* Reset to the default environment */
USE "".
UNLOAD "progress.ini".

libdir = libdir + "\reports.prl".

RUN aderb/PrintRb.p
(libdir, /* 1: RB-REPORT-LIBRARY */