Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Your code to export to BMP
Message
 
To
11/12/2009 00:37:47
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01438557
Message ID:
01464282
Views:
98
You still looking into this? Sorry I didn't see this message until just now... but yes, I have an FLL that Bo and I wrote some time back that can complete destruct VFP General Fields and get the different pieces of information and payloads (such as a Word doc for instance) that it contains. Let me know if you still need it.

>Hi Craig
>
>I have found this code on the Internet which you wrote to export a general field of type BMP to a BMP file:
>
>
>LOCAL lcFileString
>SELECT "MyTable"
>COPY TO tmpTable FIELDS YourGeneralField NEXT 1
>lcFileString=FILETOSTR("tmpTable.fpt")
>ERASE "tmpTable.fpt"
>ERASE "tmpTable.dbf"
>lcFileString = RIGHT(lcFileString,LEN(lcFileString) - 599)
>=STRTOFILE(lcFileString, "MyExport.bmp"
>
>
>That is some interesting code. Do you know or does anyone knows if the same technique could be used to extract a DOC, XLS and PDF to preserve their intact format? Because, when we use the Object.SaveAs() property, in this case a Word file, the file that ends up being saved on the disk is way corrupted.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform