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  

Print Preview Window Handling



 
 
Thread Tools Display Modes
  #1  
Old July 31st, 2007, 12:16 AM posted to microsoft.public.access.reports
Bob Howard
external usenet poster
 
Posts: 71
Default Print Preview Window Handling

Hi,

I open a report from VBA code in a form. I use acViewPreview and open it as
a dialog (window type is acDialog).

In the report's OnOpen event, I maximize.

The reason I want that is because I want a full screen preview, and I don't
want any of the typical Access menubar or toolbars.

So all this is working fine.

Problem: If the user double-clicks the print preview's window title bar (at
the very top of the screen), this causes a "window restore" action to be
taken. But it's not reversible!

I have controlbox=yes and closebutton=yes. I have minmaxbuttons=bothenabled
.... but the window has no min or max or restore buttons showing.

So once I double-click ( === restore) I cannot maximize it again.

Any clues??

This is Access 2003.

Bob


Ads
  #2  
Old July 31st, 2007, 03:30 AM posted to microsoft.public.access.reports
Damian S
external usenet poster
 
Posts: 741
Default Print Preview Window Handling

How about having the docmd.maximize in the on activate event, and perhaps to
be really sure, in the on resize event?

Damian.

"Bob Howard" wrote:

Hi,

I open a report from VBA code in a form. I use acViewPreview and open it as
a dialog (window type is acDialog).

In the report's OnOpen event, I maximize.

The reason I want that is because I want a full screen preview, and I don't
want any of the typical Access menubar or toolbars.

So all this is working fine.

Problem: If the user double-clicks the print preview's window title bar (at
the very top of the screen), this causes a "window restore" action to be
taken. But it's not reversible!

I have controlbox=yes and closebutton=yes. I have minmaxbuttons=bothenabled
.... but the window has no min or max or restore buttons showing.

So once I double-click ( === restore) I cannot maximize it again.

Any clues??

This is Access 2003.

Bob



  #3  
Old July 31st, 2007, 05:29 AM posted to microsoft.public.access.reports
Bob Howard
external usenet poster
 
Posts: 71
Default Print Preview Window Handling

I'll try the activate. There is no resize event for a report, however.
Bob.

"Damian S" wrote in message
...
How about having the docmd.maximize in the on activate event, and perhaps
to
be really sure, in the on resize event?

Damian.

"Bob Howard" wrote:

Hi,

I open a report from VBA code in a form. I use acViewPreview and open it
as
a dialog (window type is acDialog).

In the report's OnOpen event, I maximize.

The reason I want that is because I want a full screen preview, and I
don't
want any of the typical Access menubar or toolbars.

So all this is working fine.

Problem: If the user double-clicks the print preview's window title bar
(at
the very top of the screen), this causes a "window restore" action to be
taken. But it's not reversible!

I have controlbox=yes and closebutton=yes. I have
minmaxbuttons=bothenabled
.... but the window has no min or max or restore buttons showing.

So once I double-click ( === restore) I cannot maximize it again.

Any clues??

This is Access 2003.

Bob





 




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 08:00 AM.


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