Link to home
Create AccountLog in
Avatar of SteveL13
SteveL13Flag for United States of America

asked on

Make report print to a default printer

I'm using this code to printer a report.  But I don't want the user to have to select the printer.  Just print to his/her default printer.  How can this be done?

Here's my current code:

    DoCmd.OpenReport "rptInboundRecord", acViewPreview, , "[ID]=" & Me.txtID, acHidden
    DoCmd.RunCommand acCmdPrint
    DoCmd.Close acReport, "rptInboundRecord", acSaveNo

Open in new window

Avatar of PatHartman
Flag of United States of America image

If you define a default printer on your system and create the report to print to that, it will also print to the default printer for your client.
Avatar of SteveL13


Pat, I have my printer set as the default in my system.  And in the design of the report I have it set to Default Printer.  But I still get the widow to select a printer when I click print.  Maybe that is how it is supposed to work?
Avatar of Scott McDaniel (EE MVE )
Scott McDaniel (EE MVE )
Flag of United States of America image

Link to home
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Perfect.  Thanks.