print or preview

  • Thread starter Thread starter Martin Hopkins
  • Start date Start date
M

Martin Hopkins

Hello,

I have a report that is run by a marco from a form using the crireria that
the user enters. All works very well and the report goes direct to the
printer.

But on some reports I need to ask the user if they wish to print or preview
the report.

How is this done through a macro or form?

Any help gratefully received

Martin Hopkins
 
Martin,

I'm assuming you are using runcommand.print. Your solution may be as simple
as providing a second button with runcommand.printpreview attached.

Cathy
 
Yes, that's pretty much the approach I would take. Having two buttons,
I mean, one for print and one for preview. But I don't think you would
be using a RunCommand action. In both cases, the macro would be a
OpenReport action, with its View argument set to Print or Print Preview
as applicable.
 
Back
Top