OS/2, eCS & ArcaOS - Technical > Applications
DBExpert
Jan-Erik Lärka:
Save the form as a report and open the report.
Do you see the picture there?
I suspect that you only see a white background as it is?
And no change if you use =dbeLoadPicture('c:\path\2\picturefile.bmp') either?
Jan-Erik Lärka:
Also note that the form has to be tied to a database table.
It seem as if it only try to read the file if it also has initialized a record.
Bernt_Z:
Thanks for the help, but I couldn't figure out. Lack of knowledge. I solved it by adding drive and path in front of pic.files.
Jan-Erik, is there a way to add drive and path to a pic file in DBEXPERT without using REXX scripts?
Anyway, thanks for all the suggestions!
It must have been like 15 years ago I created the application!
Jan-Erik Lärka:
You're welcome! :)
Hard code the path or use rexx.
In the current folder:
SAY DIRECTORY()||'\myimage.bmp'
parent folder ( note the omitted \ ):
SAY FILESPEC( 'Drive', DIRECTORY() )||FILESPEC( 'Path', DIRECTORY() )||'myimage.bmp'
parents parent folder ( must strip the trailing \ ):
SAY FILESPEC( 'Drive', DIRECTORY() )||FILESPEC( 'Path', STRIP( FILESPEC( 'Path', DIRECTORY() ), 'Trailing', '\' ) )||'myimage.bmp'
another folder relative parents parent folder ( must strip the trailing \ ):
SAY FILESPEC( 'Drive', DIRECTORY() )||FILESPEC( 'Path', STRIP( FILESPEC( 'Path', DIRECTORY() ), 'Trailing', '\' ) )||'otherfolder\myimage.bmp'
Navigation
[0] Message Index
[*] Previous page
Go to full version