Thank you for the suggestion but it didn't help. I still see a a brief flash
of the print message but it is then quickly replaced by an error message
saying "permission denied" when my code tries to "kill" the dummy file I
printed. Not being able to delete my dummy file is a new development since
adding your code. Your suggestion makes sense -- I don't understand why it
doesn't work & why it created a new problem.
My code is set up as Document_New and Document_Open events in ThisDocument.
I tried using Aut

pen and Auto_New (which doesn't seem to show the print
message when I print to file) but I found I couldn't delete the file that. So
I went back to using the events in ThisDocument.
Maybe I 'm going about this wrong ... all I'm trying to do is print the
current page to a file (to clear up/prevent an intermittent problem where all
of my page xrefs display "3" or "4"), not show a print message to the user
while printing & then delete the dummy file I created. Since it will be used
on different systems, it needs to be able to find the file wherever it was
created & delete it.
To print, I am using PrintOut with the PrintToFile & OutputFilename options
set (added your code to set it to background print & then turn it off when
done). To name the dummy file, I'm using a variable built on the
Options.DefaultFilePath(wdDocumentsPath) & the hard-coded file name
"dummy_file.prn". To delete the file, I'm using Kill with the variable that
contains the full path & filename.
Any suggestions?
Thank you,
JoAnn