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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Introduce pictures into un field type general

Status
Not open for further replies.

bicho

Programmer
May 22, 2000
2
MX
I need help about how introduce pictures into a field general in FoxPro 2.6 for Windows application.<br><br>Im trying to use this command:<br>&nbsp;&nbsp;&nbsp;&nbsp;append general &lt;field&gt; from &quot;c:\image.jpg&quot;<br>and this don't work, ¿do I need use other instruction for insert .JPG class objects in a general field in FoxPro 2.6 for Windows?
 
The syntax is:<br>APPEND GENERAL &lt;general field&gt; FROM &lt;file&gt; [LINK][CLASS &lt;ole class&gt;]<br><br>When I try your example I get the message &quot;Error creating ole object&quot;.&nbsp;&nbsp;This tells me you need the CLASS &lt;ole class&gt; in the statement.&nbsp;&nbsp;The tricky part is what is the OLE CLASS?!!?<br><br>The real problem is that FPW2.6 is a Windows 3x application.<br>An appropriate OLE server is required to embed or link files of a specific type in general fields.&nbsp;&nbsp;There are no OLE servers for jpg files that I know of for Win3x applications.<br><br>FPW2.6 prefers bmp files.&nbsp;&nbsp;Try to convert your jpg files to bmp format and give it a whirl. <p>Mike Wood<br><a href=mailto:mwood@awod.com>mwood@awod.com</a><br><a href= > </a><br>
 
MikeWood: thanks fot the tip, but my real problem is space in hard disk, if use bmps files, my hard disk will be full soon.&nbsp;&nbsp;My application is for use a digital camera for add pictures of people in my database, and if use jpg file, ithink that don't have to be worry for space. Do you know other posible solution for my problem?
 
When I tried the same thing with VFP6 I had no problems at all.&nbsp;&nbsp;However, there are some third party solutions.&nbsp;&nbsp;You might try Hallogram (<A HREF=" TARGET="_new"> they carry Espia which is an imaging library for VFP and FPW. <p>Mike Wood<br><a href=mailto:mwood@awod.com>mwood@awod.com</a><br><a href= > </a><br>
 
Drop the General field and add a 2 character fields<br>Drive (C,2)<br>Directory (C,45)<br>in your program , form or whereever, do an ActiveX, OLE, DDE or whatever to the program that uses the file type you pick.&nbsp;&nbsp;<br><br>for example<br>If you use &quot;.tif&quot;<br>lcapp = &quot;C:\windows\wangimg.exe&quot;&nbsp;&nbsp;&nbsp;&nbsp;&& Win3.1, win95<br>lcapp = &quot;C:\windows\kodakprv.exe&quot;&nbsp;&nbsp;&nbsp;&nbsp;&& win98<br>lcApp = lcapp + &quot; &quot;+ alltrim(drive)+alltrim(directory)<br>run $lcApp<br><br>This way the pictures can be on a CD rom and you can save your Hard Drive space for data. <p>David W. Grewe<br><a href=mailto:Dave@internationalbid.net>Dave@internationalbid.net</a><br><a href= > </a><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top