Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word
Message
From
09/10/2001 16:07:09
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Re: Word
Miscellaneous
Thread ID:
00565591
Message ID:
00566171
Views:
25
Seems to work. Thanks.



>Try instead of >oRange.InsertAfter("XYZ")<:
>
>with oDocument.Application.Selection
> .GoTo(0,1,2,"")&&goto where section2 starts
> .Moveleft(1)&& goto the end of Section1
> .InsertAfter("XYZ")
>endwith
>
>>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.InsertBefore("ABC"+chr(13))
>>oRange.InsertAfter("XYZ")
Previous
Reply
Map
View

Click here to load this message in the networking platform