B
BevL
I'm trying to overcome a problem a user has with their printer by running
some code at a print event.
I've created the class module to capture the print event procedure and the
code runs, but there's a problem. The document prints before running the
code. Then the print menu becomes available to select print options once the
code reaches the "printout" command, but only the second print job actually
contains the changes brought about by the code.
How do I prevent the first print job, so that the code runs in the
background & the code results only are printed once the print options are
selected.
I've tried using the command "ActiveDocument.PrintOut Background:=False" so
that the Background Print is set to false (hopefully so that the document
waits to print until after the code modifies the document) - but that doesn't
help at all.
Any ideas please?
some code at a print event.
I've created the class module to capture the print event procedure and the
code runs, but there's a problem. The document prints before running the
code. Then the print menu becomes available to select print options once the
code reaches the "printout" command, but only the second print job actually
contains the changes brought about by the code.
How do I prevent the first print job, so that the code runs in the
background & the code results only are printed once the print options are
selected.
I've tried using the command "ActiveDocument.PrintOut Background:=False" so
that the Background Print is set to false (hopefully so that the document
waits to print until after the code modifies the document) - but that doesn't
help at all.
Any ideas please?