Spectre5000
October 12th, 2001, 08:48 AM
Good morning all you gurus! I have an application where I am generating a report. When the report has
been generated, I create a word document from vb, and then open the document in print preview (to allow
users to see what the report looks like in case they don't really want to print it). That all works fine,
but when the print preview screen closes Word stays open. What I want is for print preview to be displayed,
and then when the users closes the print preview, I want word to close completely, without asking if the user
wants to save the document that was created. How can I accomplish this?
been generated, I create a word document from vb, and then open the document in print preview (to allow
users to see what the report looks like in case they don't really want to print it). That all works fine,
but when the print preview screen closes Word stays open. What I want is for print preview to be displayed,
and then when the users closes the print preview, I want word to close completely, without asking if the user
wants to save the document that was created. How can I accomplish this?