Transferring pagesetup between docs

J

Jess

Is there any way to transfer the pagesetup object from one document to
another? What I am trying to do is load document 'a' from a location, then
create document 'b' with all the same page settings as document 'a'.

Ideally I wan't to avoid any file access when creating document 'b', just
have all the same page settings.

Any help appreciated

Jess(MSDN Subscriber)
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?SmVzcw==?=,
Is there any way to transfer the pagesetup object from one document to
another? What I am trying to do is load document 'a' from a location, then
create document 'b' with all the same page settings as document 'a'.

Ideally I wan't to avoid any file access when creating document 'b', just
have all the same page settings.
If you don't want to, say, create a new document from document 'a', then
delete all the text in order to get document 'b' then no, there's no "simple"
way to do what you need. Other than that, when you're creating document 'b'
your programming code would have to "read" each setting from document 'a' and
recreate it in document 'b'.

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 :)
 
J

Jess

Thanks Cindy, because I have multiple threads accessing the same template and
it seems that if templates contain images then Word will keep the file open,
thus making the other threads fall over, I wanted some way to let Word get
the page settings without saving a separate template for each thread &
leaving files all over the users PC, but as there is no method other than
copying every property in every object within pagesettings, I guess I'll just
have to put files everywhere :)
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?SmVzcw==?=,
Thanks Cindy, because I have multiple threads accessing the same template and
it seems that if templates contain images then Word will keep the file open,
thus making the other threads fall over, I wanted some way to let Word get
the page settings without saving a separate template for each thread &
leaving files all over the users PC, but as there is no method other than
copying every property in every object within pagesettings, I guess I'll just
have to put files everywhere :)
The only possibility I see, then, is if you could write the relevant settings to
document PROPERTIES. These can be accessed without actually opening the file.

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 :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top