Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I import a word doc into memo field
Message
From
20/04/2015 04:10:09
Lutz Scheffler (Online)
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01618713
Message ID:
01618726
Views:
34
>>>>>>>>
REPLACE mMemo WITH FILETOSTR(cDocFile)
>>>>>>>
>>>
>>>my code
>>>
>>>REPLACE wordin WITH FILETOSTR("c:\my documents\colinnewnotes.doc")
>>>
>>>Wordin is a memo field
>>>
>>>What I get is a lot of rubbish in wordin
>>>
>>>What am I doing wrong?
>>
>>Because a wordfile is a lot of rubbish if not viewed with WORD or something similar? (Others say a wordfile is rubbish anyway)
>
>So I cant import a word doc into a memo field?

You have imported the file. If you talk about visible content, no.
There is the general file type, but this is not recommended because of to many traps.
You can only store the whole thing (assuming we are talking some SQL Server), and put it into temp to work with.
For VFP solutions it's not a good idea to bloat the memo file with such stuff. There one would copy / move the file to some repositiory directory and store a file link to it.
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Reply
Map
View

Click here to load this message in the networking platform