Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to handle Jpeg and Gif files on reports
Message
From
11/05/2001 16:22:02
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00498883
Message ID:
00506408
Views:
13
I was having the same problem. Cathy Pountney tells how to make it happen in her article "Report Writer Tips and Tricks, Part 2" in FoxTalk-Feb/2001. Simply put the field name containing the picture name in () as the file name. I did it and it worked for me.
bn

>>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.
Bill N.
Previous
Reply
Map
View

Click here to load this message in the networking platform