How To print Access reports in a desired printer

A

AJ

Hi Guys,
I have to print access reports in acrobat distiller but it is not
my default printer.So when i use docmd.openreport the report is fired
on some other (default) Printer. I cannot change the default printer
settings. So how do i fire the report so that it uses acrobat
distiller.

Thanx
AJ
 
U

UpRider

AJ, if you're using Access 2000 or greater, try this:

DoCmd.OpenReport "YourReportName, acViewPreview
Application.Reports("YourReportName").Printer =
Application.Printers("PDFprinterName")

Substitute appropriate names for "YourReportName" and "PDFprinterName".

HTH, UpRider
 
A

AJ

thanx a ton uprider i will try this
AJ, if you're using Access 2000 or greater, try this:

DoCmd.OpenReport "YourReportName, acViewPreview
Application.Reports("YourReportName").Printer =
Application.Printers("PDFprinterName")

Substitute appropriate names for "YourReportName" and "PDFprinterName".

HTH, UpRider
 

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