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 14:12:54
Lutz Scheffler (Online)
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
20/04/2015 13:11:18
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:
01618800
Views:
39
>>>>>>>>>>>>
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?
>>>>
>>>>Why you need to import that document into MEMO field?
>>>>Why not just store full path to it, or copy that document into a subfolder of your data folder and store only the name of the document>
>>>
>>>I want to send an email with the body text containing the word document
>>
>>#1 It would require the other side to own a copy of M$ Word. Messages like that will be deleted without notice on my system.
>>#2 it is in general to see as insecure to have active content in mails
>>
>>conclusion: generate pdf, attach to the mail and send plain text
>
>Going completely off-topic here, but the PDFs on the following page did surprise me:
>http://www.guillow.com/3dassembly.aspx
>the page in question is from a website for a well-known (at least in the USA) flying toy and model aeroplane manufacturer (it appears to be one of a handful that still exist today). The PDFs (when viewed using Adobe's Viewer) demonstrate a capability that I didn't know was available in the PDF format. You can drag with the mouse to rotate the image of the toy aeroplane.
>
>Capabilities demonstrated in the above-mentioned PDFs will probably raise concerns (if there haven't already been any) by some sysops, and would likely mean that PDFs may also eventually join the list of banned formats for attachments in E-mail. There had been a few occasions where I eventually had to send the document in plain text format, as most formats had ended up being banned.
>
>And somewhat back into the context -- although it's possible to use FILETOSTR() to pull in a Word document into a memo field, it's not going to be immediately usable -- you still have to do the opposite to be able to open the file in Word. I do recall seeing somewhere some source code that extracts the text from a MS-Word files (though probably limited to older formats from the previous century, as the code dates back to the 1990s). The obvious downside with extraction of text elements is that you lose formatting -- in cases such as tabular data may render content not as usable.

Hi Naoto.

I fully agree with problems in PDF.

What I mean is

#1 the mail it self is pure text. No fancy gadgets. This eleminates half of the phishing, because you see the real url of a link. No pictures to trace you, no nothing.
#2 the attachment holds more, and formated information (We had reasons not to stuck to txt files ...) But one can do a decision rather then something the mail client pops up.
#3 pdf is first choice, a pdf viewer is most likely everywhere available. I don't like proprietary stuff like Word files. It always need a proprietary tool.

Those planes are cool :)
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