Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word Automation, select range of a page
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00929891
Message ID:
00929956
Views:
13
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform