General information
Category:
Coding, syntax & commands
I have a form called to print invoice, before the invoice sent to printer, I increase the invoice number and then print ..(in Multi user environment), my problem is when the invoice prompt the printer (which network printer to be used to print) ask user to select the printer, If the user click on the ok then invoice will print and number will be updated properly, Everything is OK , But the problem is user click cancel button then invoice will be cancelled to print but the invoice number already been increased. How to detect user to click on cancel and never print the invoice ? My Coding :
select docsetup
do whil !rlock()
endd
stor increase(invoicenumber) to tt_invno
repl tt_invno with invoicenumber
unlock
do report form invoice to printer prompt noconsole
Sorry for my english... Any has good suggestion or solution to solve this . If yes, Coding will be appreciated
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only