Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Abort Print Job
Message
From
14/06/1996 11:12:35
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Abort Print Job
Miscellaneous
Thread ID:
00002314
Message ID:
00002314
Views:
92
Suppose I have a process where I am printing labels via LABEL FORM xxx NEXT 1000000. As each label is printed the record is marked as having been printed. I am uncomfortable with leaving the success of this entire proces to fate. I need some reliable means of allowing the user to press a key and exit from this process while insuring that the records that have been printed are properly marked.

If the user simply turns off the printer, some of the records that have been marked will not actually have been printed because they were lost in the print buffer.

I have function which returns the empty string attached to one of the lines of my label which marks each record. I could also use this to capture a keypress by the user. The most natural key is the ESC key but I have some difficulty with that key CRASHING the system.

I normally deal with the ESC key in my systems in this manner: ON KEY LABEL ESC *
set escape off

Any rock-solid tried & true methods anyone would like to share ?
Next
Reply
Map
View

Click here to load this message in the networking platform