Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word
Message
De
09/10/2001 16:06:27
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Re: Word
Divers
Thread ID:
00565591
Message ID:
00566169
Vues:
26
Thanks for the effort but it does not seem to work.
Still puts the AFTER insertion at the beginning of the next section and subsequently on the next page.




>>It puts the text into the next section instead of at the end of section 1.
>>
>>Any ideas ?
>>
>>
>>oWord = CreateObject("Word.Application")
>>oWord.visible = .t.
>>oDocument = oWord.Documents.Add("Tap.dot")
>>
>>oRange = oDocument.Sections[1].Range
>oRange.Collapse(wdCollapseEnd) && need to move to the end of the range
>>oRange.InsertBefore("ABC"+chr(13))
>>oRange.InsertAfter("XYZ")
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform