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

Cancel Button on Print Display Box not Canceling Print

Status
Not open for further replies.

Dom71555

IS-IT--Management
Feb 6, 2005
47
US
Does anyone have any ideas as to why the cancel button does not cancel printing a datawindow?

Its a simple dw_1.Print(TRUE). When clicking the Cancel Button it still sends the datawindow to the printer for printing.

I've done a lot of searching but cannot figure this one out.

Thank in advance

Dominick
 
Hi Dom71555,

Maybe this will help.
Assuming that you are using dwcontrol.PrintCancel()
Have you checked the return value?
Documentation indicates it will return –1 if an error occurs, Null if the dwcontrol is null.

Another thought is if it is a small print job, the print spooler might have already passed the job along before the cancel operation gets executed.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top