Print Dialog Window

  • Thread starter Thread starter DAN
  • Start date Start date
D

DAN

Does anyone know how to make the print dialog window
appear through scripting rather than to just send the
report to the default printer? Thanks.
 
Try:
DoCmd.OpenReport "MyReport", acViewPreview
DoCmd.RunCommand acCmdPrint
 
Dan:

If you don't want to preview the report first, then you have to use Windows
api calls. Allen has posted how to do it when previewing. If you need the
other approach, then you might take a look at our "On the Fly Printing"
classes that are on our web.

HTH
 
Cool, thanks for the help.
-----Original Message-----
Try:
DoCmd.OpenReport "MyReport", acViewPreview
DoCmd.RunCommand acCmdPrint


--
Allen Browne - Microsoft MVP. Perth, Western Australia.

Reply to group, rather than allenbrowne at mvps dot org.




.
 

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


Back
Top