#1   Report Post  
Tim
 
Posts: n/a
Default Adding 2nd document

In an application i can open a specific document through code (VB.NET). How
would i then add pages to that document without creating another document
or, if i have to create a document, how to then copy the text on that
document, paste it at the end of the other document, and then close that
document(not the one first created but the second)

Thanks
TIm


  #2   Report Post  
Cindy M -WordMVP-
 
Posts: n/a
Default

Hi Tim,

In an application i can open a specific document through code (VB.NET). How
would i then add pages to that document without creating another document
or, if i have to create a document, how to then copy the text on that
document, paste it at the end of the other document, and then close that
document(not the one first created but the second)

In case you hadn't noticed, this group handles end-user questions, not
developer questions. And office.developer or word.vba group would be more
appropriate.

Word is a word processor: it adds pages as you add text, automatically. To
force a page break, you can use the InsertBreak method, with the appropriate
parameter. Or insert a Chr$(12) character.

Seeing as how you're SO new to Word and its object model, I recommend you play
around a bit in the user interface, to discover how to accomplish simple tasks
in it, then record performing the tasks in a macro (Tools/Macro). You can't use
the macro 1:1 in your .NET app, but it will point you to the objects, methods
and properties you need to work with.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)

Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can you save individual document pages as seperate word files? John Calligy Mailmerge 2 April 12th 05 09:14 AM
Only part of letter prints after adding an envelope to document Del21 Microsoft Word Help 1 March 7th 05 05:20 PM
how can I fill in a pro forma document adding text to specific bo. TLlllinda Microsoft Word Help 3 January 19th 05 07:31 PM
Newbie document question please Dudley Henriques New Users 4 January 9th 05 08:38 PM
Document object in protected form Bruce Tables 2 December 6th 04 07:09 PM


All times are GMT +1. The time now is 09:04 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"