Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word how to add new page
Message
From
04/09/2003 10:45:29
 
 
To
04/09/2003 10:21:12
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00826005
Message ID:
00826031
Views:
32
Thanks Cetin,

that's almost it...
oRange.InsertBreak() && Default is page break
IT inserts a pagebreak that is thru but I actually need it to be appended... I need the exact same behavior than [CTRL+ENTER] that is having the new page inserted after the end of the document.

TIA

Yanick

>>Hi again,
>>
>>I need to add a new page to an existing Word Document.
>>
>>
>>#DEFINE wdCollapseEnd  0
>>
>>oWord = CREATEOBJ("Word.Application")
>>oDoc = oWord.documents.Add()
>>oRange = oDoc.range()
>>oRange.InsertAfter("Fake text...")
>>oRange.Collapse( wdCollapseEnd )
>>
>>
>>from here what I'd like to happen is to add a page as if the user would have keyed and continue to put text on the page that have just been created.
>>
>>TIA for your help,
>>
>>
>>Yanick
>
>oRange.InsertBreak() && Default is page break
>
>Cetin
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform