Information générale
Catégorie:
COM/DCOM et OLE Automation
Titre:
Inserting Text in Word Document
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 ?
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement