Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to know print job was completed successfully or not?
Message
 
 
To
29/05/2002 13:29:04
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00662621
Message ID:
00662659
Views:
23
>Hello All,
>
>I would very much appreciate if someone can help me here.
>
>I am writing a check printing program and I have a lPrinted field in my dbf file to see if check was printed or not. and we will use that to help user determine what checks have to be printed. so to do , I guess first of all i can't print bunch of checks together. because then due to any reason printing stops in middle, i won't know how many were printed and how many not. correct?
>
>so i guess the logic should be i have to do scan..endscan and print one check at a time and check each one's print status whether it was printed successfully or not? i mean printing could have stopped due to any resons ( print out of paper, printer jammed, electricity failure (worst case!). so is there any way i can know that above print job was completed successfully or not?
>
>thank you very much for your help in advance
>
>Mark

How do you print it? Is it VFP report? If yes, you can do the following trick: put in the summary OnExit:
_VFP.SetVar('PrintCompleted',wexist('Printing'))
So, if your report would be printed till this point, this variable PrintCompleted would be set to true. You have to set it to .f. before each report invocation. Also make this variable private.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform