A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

How can I determine the current view?



 
 
Thread Tools Display Modes
  #1  
Old May 21st, 2004, 01:23 PM
Hugo Lengweiler
external usenet poster
 
Posts: n/a
Default How can I determine the current view?

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


  #2  
Old May 21st, 2004, 05:27 PM
Allen Browne
external usenet poster
 
Posts: n/a
Default How can I determine the current view?

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?

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Hugo Lengweiler" wrote in message
...

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.



  #3  
Old May 22nd, 2004, 07:45 AM
Hugo Lengweiler
external usenet poster
 
Posts: n/a
Default How can I determine the current view?

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?

"Allen Browne" schrieb im Newsbeitrag
. au...
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?

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Hugo Lengweiler" wrote in message
...

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.





  #4  
Old May 22nd, 2004, 08:29 PM
SA
external usenet poster
 
Posts: n/a
Default How can I determine the current view?

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.
--
Steve Arbaugh
ACG Soft
http://ourworld.compuserve.com/homepages/attac-cg

"Hugo Lengweiler" wrote in message
...
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?

"Allen Browne" schrieb im Newsbeitrag
. au...
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?

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Hugo Lengweiler" wrote in message
...

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.







 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:56 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.