>My problem: I have a Word-document which consists of 3 pages: 1 frontpage, 1 empty page and 1 endpage. Now my question: how can I add some text from VFP into that empty page ??? When I only have a frontpage, it's no problem, I can add text after opening the Word-Document with the InsertAfter() method. But how can I insert text between 2 pages ? Maybe by only using the front- and endpage ??? Let me know if you can help me !!! Thankx
There are lots of ways to do that. You can use the Goto() method, that should place you at the top of a page. Or you could use a Find() method to search for the first page break character. To quickly find the code, record a Word macro while you get there interactively, then examine the code to see what it says it did. You'll likely have to go chase down the value of a constant or two -- see the Object Browser for that (in the Visual Basic Editor, press F2 to get the Object Browser).
Hope this helps...let me know if you have further questions.
- della
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only