Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to handle Jpeg and Gif files on reports
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00498883
Message ID:
00499127
Views:
16
>I have an application that holds a path to pictures in a field (c:\pictures\mypic.jpg). This works fine on screen using the image object, but when it comes to reports the file option won't take an expression, it seems to need a literal filename. Nor will it handle a function returning a filename.
>My other alternative was to place the data in a cursor with a general field holding the filename (APPEND GENERAL picture FROM (mFile) CLASS image/jpg).
>This works fine with bmp files, but not with jpg or gif files. All I get with jpg or gif files is a reference to the file but no picture.
>Has anyone got any ideas ?
>Thanks
>John

John,
Somewhat Like Cetin, I let print handling occur via IE

WAIT WINDOW NOWAIT CMYCURRENTJPG
oIE = CREATEOBJECT("InternetExplorer.Application")
oIE.Navigate(cmycurrentjpg)
=INKEY(1)
nStartSeconds = SECONDS()
* bug fixed by Erik Moore Nov 25/99
DO WHILE oIE.ReadyState <> 4 AND (SECONDS()-nStartSeconds < 30)
ENDDO
oIE.Visible = .T.
RELEASE oIE
oIE= .NULL.
Edgar L. Bolton, B.S. B.B.A.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform