Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word Automation problems
Message
 
 
To
24/11/2000 04:17:10
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00445138
Message ID:
00445162
Views:
20
>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
Map
View

Click here to load this message in the networking platform