Members of Dialogs(wdDialogFilePrint)

P

Pfc

Hi

I am trying to find all the members of wdDialogFilePrint. I have a VBA
application that uses settings returned after .Display but I can't find
the name for the setting for 'Print What'. I need to find if the user
has selected Print 'Document' or Print 'Document showing Markup' (or
any other entry for this item)

I can set this using

Application.PrintOut Item:=wdPrintDocumentWithMarkup, ... etc

or

Application.PrintOut Item:=wdPrintDocumentContent, .....etc

but the tag 'Item' is not recognised when reading the results following
..display i.e.

With Dialogs(wdDialogFilePrint)
.Display
iCopies=.NumCopies
iWhat = .Item
End With

gives an error.

I'd be grateful for any help with this - thanks
 
J

Jay Freedman

The VBA Help has a topic titled "Built-in Dialog Box Argument Lists"
that shows all the otherwise undocumented members. The list for
wdDialogFilePrint is

Background, AppendPrFile, Range, PrToFileName, From, To, Type,
NumCopies, Pages, Order, PrintToFile, Collate, FileName, Printer,
OutputPrinter, DuplexPrint, PrintZoomColumn, PrintZoomRow,
PrintZoomPaperWidth, PrintZoomPaperHeight, ZoomPaper

I think the Type argument was supposed to correspond to the Print What
setting, but the parent Dialog class has a Type member, so all you get
if you ask for Dialogs(wdDialogFilePrint).Type is 88, the value of the
constant wdDialogFilePrint.

The MVPs have been beating on MS for years to get lapses like these
corrected, but they always seem to find too many more important things
to do.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.
 
P

Pfc

Jay said:
The VBA Help has a topic titled "Built-in Dialog Box Argument Lists"
that shows all the otherwise undocumented members. The list for
wdDialogFilePrint is

Background, AppendPrFile, Range, PrToFileName, From, To, Type,
NumCopies, Pages, Order, PrintToFile, Collate, FileName, Printer,
OutputPrinter, DuplexPrint, PrintZoomColumn, PrintZoomRow,
PrintZoomPaperWidth, PrintZoomPaperHeight, ZoomPaper

I think the Type argument was supposed to correspond to the Print What
setting, but the parent Dialog class has a Type member, so all you get
if you ask for Dialogs(wdDialogFilePrint).Type is 88, the value of the
constant wdDialogFilePrint.

The MVPs have been beating on MS for years to get lapses like these
corrected, but they always seem to find too many more important things
to do.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.
 
P

Pfc

Thanks Jay

I had rather concluded that it was the Type member but as you say it
always returns 88

Regards
Peter
 

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