Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem Displaying Images Via OLE Bound Control

Status
Not open for further replies.

adamwill

Programmer
Jun 19, 2003
18
GB
We have an application which is displaying images from a sql server database via an ole bound control. On some machines it works fine whilst others (after selecting and storing an image themselves) see an icon instead of the picture. They are able to see the picture fine when it is selected by another machine. Does anyone know what the problem might be? I thought it might be an ocx or dll issue but I do not know which ones are needed.

If they simply double click on the file in windows explorer then it loads fine into the appropriate app (eg paint for bmp's).
 
What OLE (ActiveX) Control are you using? Is the application running on different OSs? (Which work and which don't?) What version and Service Pack level of VFP are you using?

Rick
 
I am using the VFP OLE Bound control which is data bound to the field containing the image.

It both works and fails on Windows 2000 Pro and XP.

Running VFP6 SP5
 
adamwill

The symptoms are typical of an incompatability with the Windows associated graphics editor - normally you get this behaviour with general fields in VFP.

See thread184-45672

If you can isolate the offending graphics editor you will be able to resolve the issue.

FAQ184-2483 - the answer to getting answered.​
Chris [pc2]
 
I get the problem using straight bmp's associated with windows paint on both machines (one works, one does not).
 
Curious. I wonder if there is a windows system setting that affects this. Such as a "don't display thumbnails" or something.

Slighthaze = NULL

[ul][li]FAQ184-2483
An excellent guide to getting a fast and accurate response to your questions in this forum.[/li][/ul]
 
Another thought, when you say that it works on one machine and not on another... they both are running Win2k (which you said) are they both running the same application? From the exact same table? Showing the exact same fields? Is the pathing from the application to the table containing the images the same on both? Are you logged in with the same rights to the server or pc on both of these machines? Are both Win2k have the same service pack level installed?

More questions than answers but maybe gives you some ideas you didn't have before. Also, in answering these questions it may lead some member to the right solution for you.

Slighthaze = NULL

[ul][li]FAQ184-2483
An excellent guide to getting a fast and accurate response to your questions in this forum.[/li][/ul]
 
Same application.
Same database / table
Same path to table (odbc to sql server and remote views)
Logged in using same user account
Both machines SP4

Bit of a puzzle really.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top