The Print Dialog Box on the Macintosh

O

OughtFour

I am porting a customization of FilePrint from Windows to Macintosh (Word
2004) that uses Dialogs(wdDialogFilePrint) in a reasonably straightforward
way:

Set aDialog = Dialogs(wdDialogFilePrint)
aDialog.Update
If aDialog.Display = -1 Then

and then some custom stuff, and then

aDialog.Execute

No problem on either platform if the user either prints or cancels from the
dialog box. But on the mac, choosing preview or saving as a pdf file fails
to do either of those things but instead prints to the printer.

I can see exactly what is happening. aDialog.Display returns -1 in both
cases, and the macro proceeds as if the print button had be chosen. But is
there anything I can do to get the result I want? Is there any way to trap
the PDF choices? Is there a way to save as a PDF programatically?

I realize this is probably an obscure problem to most of you, but thanks for
any light anyone can shed.
 

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