Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What's the Word?
Message
From
04/02/2009 10:22:09
 
 
To
04/02/2009 09:52:01
General information
Forum:
Visual FoxPro
Category:
Third party products
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01379211
Message ID:
01379224
Views:
19
>Hi All,
>
>I want to give my users the ability to create simple MS Word doc's and populate them with fields using data from my app.
>What's the best approach? I've tried placing an IncludeText field on a Word doc tied to a .txt file and that works OK, except it doesn't update automatically when the contents of the text file changes. The Link option seems to allow every type of file except .txt. Any suggestions? I'd like to keep it as simple as possible.
>
>Thanks,
>Luke
>
>P.S. I'm using Office 2003 and I'd like to keep it in that context.
I'm not exactly sure what you mean,butmaybe this helps:

The users should use documents in RTF-format. There they can use field names with delimiters, like: @@address@@.
Now you can use the following code:

lcStr = FILETOSTR("MyRTFfile.rtf")
lcStr = STRTRAN(m.lcStr,"@@address@@"", myFoxTable.AddressField)
....
....
STRTOFILE(m.lcStr,"MyRTFfile.rtf")

Maybe you mean something completely different, maybe not.

HTH,

Lennert
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform