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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|