How can I determine the current view?

  • Thread starter Thread starter Hugo Lengweiler
  • Start date Start date
H

Hugo Lengweiler

Hello,

I have programmed an event-handler for the PRINT-event . How can I determine
whether the view of the report is "print" or "preview"? There is no property
"CurrentView" like it is for forms. None of the properties of the report
differ in the two views.

Thanks in advance
Hugo
 
That's right. Access does not expose this for you.

There is a difference: the Activate event fires only if the report is opened
in Preview mode. Could you use this event to set a module level boolean
variable to True, and then read this flag when you needed to know?
 
Hello Allen,

Thanks for your hint. Unfortunately it doesn't help me. In the
PRINT-event-handler I want to do an action only if the report is really
printed and not only previewed. Is there an event that signals "printing
started" or something similar?
 
Hugo:

No, unfortunately, there is no event that actually occurs when the report is
sent to a printer. Even if a report is actually sent to a printer, there's
no (easy) way to determine if there's been a successful output from the
printer.
 

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

Back
Top