Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dialog print on report

Status
Not open for further replies.

temporaneo1234

Programmer
Feb 20, 2004
6
IT
When the PRINTOUT command goes, it show a little dialog box informing that printing is going, showing the number of pages and showing "cancel" button.

It's possible, especially in report printing, to hide this window?

I have tried to use, before printout command, this:

[begin|code]
Application.Echo False
DoCmd.Echo False
DoCmd.SetWarnings False
DoCmd.PrintOut acAll, , , , 999
[end|code]

and also, after printout:
[begin|code]
dwOK = api_DestroyWindow32(api_FindWindow32("OEcl", 0&))
dwOK = api_DestroyWindow32(api_FindWindow32("OSnG", 0&))
dwOK = api_DestroyWindow32(api_FindWindow32("OArgDlg", 0&))
[end|code]

but printout freeze vba during that dialog window.

There is nobody has a solution?

Bye
Gianluca
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top