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

How can I supress the windows print dialog box? 1

Status
Not open for further replies.

Kflasph

Programmer
Apr 8, 2002
65
US
I have a program that calls another program with a Shellexecute command. The second program runs in the background while the other program is still running and prints reports if needed. When the reports from the second program are printed - the printer dialog box is display and the first program looses focus.
Is there anyway to supress the windows print dialog box?

Thanks in advance!
Kflasph
 
Let me clarify what I mean by print dialog box. This is the 'message box' that shows when the report is being sent to the printer showing the page count and the printer name.
Kflasph
 
Is this box a function of your printer driver? For example, my printer used to pop up a box on the lower right saying it was printing, how many pages etc. I clicked on Options on this box and turned it off.

If it is not part of your printer driver, and it IS part of a foxpro command then use this syntax

report form << your report name >> to printer noconsole

Don


Don Higgins
 
I was assuming that it was a windows box because it is a dialog\message box that appears on the desktop when the document is sent to the printer. My call for the report is using the report form <report name.. to printer noconsole.

Kflasph
 
What version of VFP?

In 8 or later, you can add NODIALOG to the REPORT command to suppress this dialog. This might (or might not) be available in VFP7 as well. I don't have a copy here to check.
 
Thanks for pointing me to FAQ184-2918. Using that process did supress the window and now the program does not loose focus.
Thanks again,
KFlasph
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top