Consultor Eletrônico



Kbase P16680: Error 5889 when using load-picture with jpg file
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/06/2004
Status: Unverified

FACT(s) (Environment):

Progress 9.x

SYMPTOM(s):

Error 5889 when using load-picture with jpg file

Unexpected error occurred while processing method/statement <method or statement name>.
<COM message>
<Program name> (5889)

load-picture with .bmp file works

CAUSE:

Enhancement request# 20031121-001 has been logged in order to have a jpg support for LOAD-PICTURE

FIX:

Load-picture doesn't support .jpg files.
Extract from context help about load-picture:
LOAD-PICTURE
Returns a COM-HANDLE to an OlePictureObject. You can use this COM-HANDLE to set graphical properties of controls.

SYNTAX
LOAD-PICTURE [ image ]

image
A CHARACTER expression representing the name of the graphical file.
This file can have one of the following extensions: .BMP, .WMF, .EMF, .ICO, .CUR, .DIB. If the filename is not fully qualified, LOAD-PICTURE searches for a matching file on the user's path.