Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Inserting Text in Word Document
Message
From
09/10/2001 16:13:46
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Inserting Text in Word Document
Miscellaneous
Thread ID:
00566173
Message ID:
00566173
Views:
35
I am working on a project where I am using a template document (DOT) from WORD and VFP to produce a final document. I am finding that putting in little tokens like or and then searching and replacing using the FIND object works quite well. However, there are places where I need to put in a large quantity (memo field) of text and the FIND object balks at anything over 254 characters in length. So I am stuck again.

I would like to use the FIND object to at least find the spot it needs to go and then perhaps use INSERTAFTER ... or something like that to put the entire contents of the memo field into it.

Or, something I just thought of ... Maybe I could use the last 50 characters of the text I just inserted for the next search and then replace it with those same 50 characters plus 200 more , etc ,etc , until the entire contents of the memo field have been inserted. A pretty convoluted method to be sure but if it works so what ?

I am far from an expert in the WORD COM stuff so I look for the simplest means.

Any ideas ?
Next
Reply
Map
View

Click here to load this message in the networking platform