Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Showing JPEGS on reports - how??? - VFP6
Message
General information
Forum:
Visual FoxPro
Category:
Pictures and Image processing
Miscellaneous
Thread ID:
00290870
Message ID:
00291023
Views:
42
Erik,
Here is some old code we use for printing images in reports. This will work for jpegs, as well. See thread #289546. We do this with uncompiled reports.

USE \ft\reports\po.frx ALIAS porepo
GO TOP
LOCATE FOR objtype=17
IF FOUND()
IF !EMPTY(ALLTRIM(cur_pos.imagefl)) AND FILE('\ft\poimages\'+ALLTRIM(cur_pos.imagefl))
REPLACE PICTURE WITH '"\ft\poimages\'+LOWER(ALLTRIM(cur_pos.imagefl))+'"'
ELSE
WAIT WINDOW 'No Image Or Image Not Found!' NOWAIT
REPLACE PICTURE WITH '"\ft\poimages\blankpo.bmp"'
ENDIF
ENDIF


>>Well, I hate to disagree, but you can show jpegs also in VFP 6. I have a table with a field photo. That field is character, but could be a memo field. There I store the relative path to the photo and in the picture/activex bound control on the report (in the box marked file) I put the field name.
>
>Hmp. I just never tried putting a variable name in there. Silly me. I just attribted that to a static path for a logo or something. THanks for keeping me in line.
Jim Finger
Previous
Reply
Map
View

Click here to load this message in the networking platform