i have a macro which first checks the user's default printer and stores it
in a variable then the macro selects a postscript printer where the option
Print to File is checked.
the macro runs correctly, creates a *.prn file, restores the users default
printer but the only thing i cannot get it to do is to reset the Print to
File option back to being unchecked!!
there is a "PrintToFile" argument listed in the wdDialogFilePrint dialog
box but it doesn't seem to work unless i send something to print which i
don't want to do.
does anybody have any ideas?

Re: Resetting PrinttoFile option by Jonathan

Jonathan
Tue Sep 16 09:13:58 CDT 2003

Hi Patricia

Take a look here

How can I reset the File + Print dialog so that it's not set to "Print to
File", after running code which prints a document to a file?
http://www.mvps.org/word/FAQs/MacrosVBA/ResetPrintToFile.htm

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

<Patricia.Barrow@unvienna.org> wrote in message
news:eVqnwLFfDHA.2400@TK2MSFTNGP11.phx.gbl...
> i have a macro which first checks the user's default printer and stores it
> in a variable then the macro selects a postscript printer where the option
> Print to File is checked.
> the macro runs correctly, creates a *.prn file, restores the users default
> printer but the only thing i cannot get it to do is to reset the Print to
> File option back to being unchecked!!
> there is a "PrintToFile" argument listed in the wdDialogFilePrint dialog
> box but it doesn't seem to work unless i send something to print which i
> don't want to do.
> does anybody have any ideas?



Re: Resetting PrinttoFile option by Patricia

Patricia
Wed Sep 17 01:30:32 CDT 2003

jonathan, thank you.....