Kbase P20999: Calling Report Engine from 4GL procedure fails with 'invalid
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  12/03/2003 |
|
Status: Unverified
SYMPTOM(s):
Calling Report Engine from 4GL procedure fails with 'invalid database override parameter'
Using the _printrb / _prntrb2 interface
Database connection override string (RB-DB-CONNECTION) parameter contains a path name containing one or more spaces
CAUSE:
The connection override string will be translated to a set of OS-level command-line parameters when the Report Engine is started. Because of the space(s) in the pathname, it will be treaded as two or more parameters instead of just one.
For example, '-pf c:\program files\install\start.pf' will be interpreted as two parameters, '-pf c:\program' (parameter with value) and 'files\install\start.pf' (parameter without value).
FIX:
Put the pathname in the RB-DB-CONNECTION string in quotes. This will explicitly define it as a single character string, so it will be parsed correctly by the underlying OS calls.
Following above example, '-pf "c:\program files\install\start.pf" ' should be used.