Document based on template doesn''t have correct page setup

P

PC

We have a macro that creates a new document based on a template, using the
following code:

Set doc = Documents.Add(Template:="k:\templates\Preprintedletterhead.dot")

The template is set up so that the first page is selected from tray 3
(loaded with letterhead), and subsequent pages are selected from tray 2
(plain paper).

New documents created by "Authenticated Users" using this macro do not have
the correct page setup - they are set as "automatically select".

Authenticated users have the following permissions on the templates folder:
Read & Execute, List Folder Contents, Read, Write. (Permissions are set so
that users cannot over-write the templates.)

New documents created by the macro, by users with full permissions on the
folder, DO have the proper page setup.

I have added the following code to try to set the page after the document is
created but this does not have any effect:

With doc.PageSetup
.FirstPageTray = wdPrinterLargeCapacityBin
.OtherPagesTray = wdPrinterLowerBin
End With


Does anyone know how to work around this problem, which appears to be
related to permissions on the folder?
 
R

Russ

PC,
Does everyone involved have the same permissions to change printer settings
over the network?
 
P

PC

Russ:
Yes, they can change the settings for the newly-created document, but we
would like to have the settings of the template applied automatically to save
time.
 

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