>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.