Printing dialogue pre-settings

G

George Perchette

Hi

I am trying to show the printing dialogue with
the Option "Printing" automatically set on
"Document (Content)" without any action
by the user, and not - if there are comments
in the document - that the option is automatically
set on "With Comments" ...

I try it with

With Dialog(wdDialogFilePrint)
.Item = wdPrintDocumentContent
.Show
End With

I do something similar with the SaveAs-dialogue
to automatically have a default saving name shown.
That works perfect. By the code shown above, the
code stops with error 438, "object ist not...".
wdPrintDocumentContent is then set on 0.
When I change it on 1, the dialogue ist shown without
error.

(Word 2000, but I need it later under Word XP)

Thanks for any help, George
 
J

Jonathan West

Hi George,

You are using the wrong property name. Try this

With Dialog(wdDialogFilePrint)
.Type = 0
.Show
End With

The possible values for the Type property are as follows

0 Document
1 Summary Info
2 Annotations
3 Styles
4 AutoText Entries
5 Key Assignments

--
Regards
Jonathan West - Word MVP
MultiLinker - Automated generation of hyperlinks in Word
Conversion to PDF & HTML
http://www.multilinker.com
 

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