Direct Printing of Reports

L

LaggerChr

hello all!

is it possible to print a report without opening it? i just wanna press
one button and then get directly to the printing dialog!

This is how i do it now. I open the Report:

DoCmd.OpenReport "repEinsatzbericht", acPreview, , "tblAuftraege.atID =
" & CStr(atID)

Then the User has to go over the Menu to the Print Option. But there
must be a way to just click on a button on a form and open the dialog
directly!

thanks in advance

best regards
 
G

Guest

Replace acPreview with acNormal. If you look in VBA Help at the description
of the OpenReport method, it will explain what the various parameters are.
 
L

LaggerChr

Ok, replacing the acPreview with acNormal does work. But it would be
good if i get the standard printing dialog first and not just send it
directly to the printer.

Would that be possible too?

best regards
 

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

Similar Threads


Top