Print report in access 2007 runtime (1 Viewer)

bodylojohn

Registered User.
Local time
Yesterday, 19:04
Joined
Dec 28, 2005
Messages
205
When I open MyReport using the following code:

Code:
DoCmd.OpenReport "MyReport", acViewPreview, "", "", acDialog

Access 2007 nicely shows me the report but I cant print it.

When I use:

Code:
DoCmd.OpenReport "MyReport", acViewPreview, "", "", acWindowNormal

I can print it but I cant display it in dialog.
So I get to see the tabs (forms) and a nice printpreview toolbar.

Is there a way arround it?
And I dont want to use a button.
 

Sum Guy

Registered User.
Local time
Yesterday, 17:04
Joined
Nov 19, 2006
Messages
310
When the report is displayed on the screen, press the "P" key. The print menu will be displayed. Set your preferences and print away.
 

bodylojohn

Registered User.
Local time
Yesterday, 19:04
Joined
Dec 28, 2005
Messages
205
When the report is displayed on the screen, press the "P" key. The print menu will be displayed. Set your preferences and print away.

Thank you very very much.

I will test that right away.
 

Users who are viewing this thread

Top Bottom