Direct Printing of Reports

  • Thread starter Thread starter LaggerChr
  • Start date Start date
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
 
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.
 
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
 
Back
Top