Home > front end >  Images of two steps of how to implement in a case
Images of two steps of how to implement in a case

Time:11-06

CodePudding user response:

Demand in print after 1-5 system pop-up prompts' invoice number is discontinuous, and suggest to continue?? Can realize???
Browser to monitor whether no printer to print finish,,,

CodePudding user response:

Ask a question: since the invoice number is program generated actively, why there is the situation of the discontinuous?

Then, as long as you can in exactly one invoice before printing and after printing, you can perform a your own code, you can easily reach your need
Steps:
1: started printing, take up a invoice number, and compare the current waiting to print the invoice number, if broken, will prompt... Is your actual demand
2: printing, after the completion of the current invoice number stored in a variable, just how to save, when the next print can get to the line

Some print plug-in has a built-in hook function, will allow you to perform in some state your own code, such as: onBefore, onCompleted, so, it depends on your project to the control behavior of "print" whether to allow you to do these custom behavior
  • Related