Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word Automation
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Divers
Thread ID:
00749519
Message ID:
00749523
Vues:
19
This message has been marked as the solution to the initial question of the thread.
To have cursor at the end of the document, try:

.Selection.EndKey(wdStory)


>When referring to ranges in word automation, I am experiencing difficulty collapsing the range. I need to do something like this:
>
>oword = CREATEOBJECT( 'word.application' )
>oword.Documents.Add
>odoc = oword.ActiveDocument
>orange = odoc.range
>odoc.Tables.Add( orange, 1,3 )
>orange.Collapse(0)
>orange.InsertBreak(4)
>
>I am trying to get a page/section break after the table.
>
>I am unable to get the cursor or selection to go to the end of the document so that the insert page break makes a new page.
>
>Please help.
>
>Thanks.
>
>Dave
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform