print dialog...

  • Thread starter Thread starter mission2java_78
  • Start date Start date
M

mission2java_78

Guest
When I run a report and open it i can right click on it and click the printer icon. Doing so brings me a print dialog much like word...which allows you to select a printer.

If I provide a button that just prints a report it uses the default printer...which I dont want users to be able to use...
I want them to have much like what it does when you right click the report, it shows the default but it allows you to select another printer.

How does one accomplish that ?

Jon
 
Online Help Documentation for the OpenReport Action (macro) says
The Print setting for the View argument prints the report immediately by using the current printer settings, without bringing up the Print dialog box.
My guess is you might have to open the report in Preview mode first, then maybe use the PrintOut command to control which printer is used. I've never used PrintOut, so you'll have to check it out yourself.
 
jimbrooking said:
Online Help Documentation for the OpenReport Action (macro) says
My guess is you might have to open the report in Preview mode first, then maybe use the PrintOut command to control which printer is used. I've never used PrintOut, so you'll have to check it out yourself.

Ya I saw this already...but printout doesnt take a report as an argument...it prints the current object.
 
Yes - should have been more specific - you would need to use the PrintOut in the report's Open event procedure - and after invoking the PrintOut, just close the report.
 
jimbrooking said:
Yes - should have been more specific - you would need to use the PrintOut in the report's Open event procedure - and after invoking the PrintOut, just close the report.

Problem is you cannot call the PrintOut method of the docmd object in an event....


Jon
 
jimbrooking said:
Yes - should have been more specific - you would need to use the PrintOut in the report's Open event procedure - and after invoking the PrintOut, just close the report.

I was hoping to add sometihng on my print report tool bar that would bring up this dialog box to allow me to select my printer, much like the print dialog box when you right click on a report and click print.

Surely there is one? Rich / Pat ???

Jon
 

Users who are viewing this thread

Back
Top Bottom