Print Preview Window Handling

  • Thread starter Thread starter Bob Howard
  • Start date Start date
B

Bob Howard

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
 
How about having the docmd.maximize in the on activate event, and perhaps to
be really sure, in the on resize event?

Damian.
 

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