default printer module

G

Guest

I need to create a function that will grab and hold the current default
printer. I got code from Albert Kallal that does this, but I need to hold
this value. WHat will happen, when I open a specific report in the on open
event I will call the function that will grab the current default printer.
Then I will change the printer to another printer so that the report prints
to a specific printer, then in the on close event I can recall the original
default printer. I hope this makes sense.

TIA
 
D

Douglas J. Steele

Store the default printer in a module-level variable, or in a table, or in
an INI file, or in the Registry, or...
 

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