Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word Automation, select range of a page
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00929891
Message ID:
00929956
Vues:
9
Hi Robert.

I need a code snippit to select a page as a range and put it into the copy buffer. All I see is info on doing ranges by section, paragraph, etc but not by page.

I think that I am doing something similar in one of the applications that I am building right now. I use the following code to select and copy some content that I have built in a secondary docuemnt into the "main" document that I am in the process of creating:
*** Now copy and paste the secondary stuff just generated into the main document
*** the secondary stuff is in the document referenced as loSecondDoc
*** Which is the active document at this point in time.
*** The main document is open "behind" it in Word
loWord.Selection.WholeStory()
loWord.Selection.Copy()
loSecondDoc.Close( .F. )
loWord.Selection.Endkey( wdStory )
loWord.Selection.Paste()
You do not say which version of Word you are using, but I am using this technique to build documents using Word XP.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform