Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Jpg doesn't show in ole bound control
Message
From
26/08/2005 05:51:01
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
26/08/2005 05:25:25
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01044220
Message ID:
01044233
Views:
13
>An ole bound control with a general field as datasource, works fine with bmp's but with jpg's, the picture is correctly stored but only the name is displayed, not the picture ...
>
>Anyone ?

Pascal,
General fields do not simply store the file itself but embed OLE info about the server that created the file. When it needs to show it seeks for the server it was created in. If not installed then displays an icon instead. At least IE can display jpegs and installed in your computer doesnt mean it'd show. If IE was the application that created the jpg then would work. Hope I'm not making it complex while trying to explain:)
My suggestion do not use general fields. You can use memo binary or BLOB in VFP9 for storing such files if you ever need to store them. Otherwise just store their path&filename and display using an image control.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform