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 Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to eliminate de "Printing" messagebox !?

Status
Not open for further replies.

kueyiar

Programmer
Mar 19, 2002
47
HN
Hi there, can anyone tell me how to eliminate the messagebox with the title of "Printing" when i isue a report form x to print.
This messagebox displays the number of pages being sent to the printer.

I've used SET NOTIFY OFF, SET TALK OFF and even used the NOCONSOLE parameter next to my report form command but it doesn't work at all.
Thanks in advanced !
[afro]
 
In the Init of the DataEnvironment of you report put:

Code:
IF Wexist("Printing...")
	Move Window "Printing..." to -1000,-1000
ENDIF

You will see it for a second, but after it goes away

 
An even better way is to make an API call since the Printing window is a system window:

Code:
DECLARE INTEGER GetDesktopWindow IN WIN32API
DECLARE INTEGER LockWindowUpdate IN WIN32API INTEGER lnHandle
hWin = GetDeskTopWindow()
LockWindowUpdate(hWin)
REPORT FORM x to print
LockWindowUpdate(0)
 
i've tryied using both your tips but the window still shows up !? Any other ideas !?
[afro]
 
On the first suggestion, the window does show up for a second, but does it go away afater that?

Actually the way I use this is: I have an invoice to print from an order screen. I have a method in that form called "OnEntryDetail" with the first code I gave you above. And in the "on Entry" expression in the Title band of the report (Double click on the little gray band just below the Title of the report) and put "thisform.onentrydetail()" (Without the quotes")
 
I created the method and added the function call on the title band of the report and it worked as u said !
Thank u !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top