I use the printer. The print to print *. BWT file all content of this file set up I just responsible for delivering data source control to inside not repeat print!
Data source is set to a TXT text TXT file in a numeric string I transfer to TXT every time a string is called after the success of the print a print logo I'll continue to send a string to the TXT text so you can control not to repeat the success but how do I know if there is any print? Or print successful second transfer has been done so without losing data? Seek expert help solve my novice easier thank you very much
CodePudding user response:
It depends on your use of printing method is synchronous or asynchronous,If is synchronous, only print successful, the program will perform the following statement, so you don't have to consider how to know if print completed,
If is asynchronous, you can see before to print to print the content has been printed (in a TXT file for each data set a markup), print is not processing, processing not only print, and then complete the actual orderdate is set to the already printed, let the next test no longer print the record,
You actually choose TXT file will not be a good way, you can use the database, the other may also have a lot of you didn't find out the problems, and realized that as a novice, there are many aspects need to learn, slowly come on.
CodePudding user response:
Thanks for synchronous and asynchronous problem failed to understand and thank you for your replyCodePudding user response:
I also encountered such a problem, but we didn't use bartender of the kind of data written to a file and print operation on the control data changes are detected, we are using a USB or so and printer communication directly, through the bartender to export template to send to the printer, each time to print a let the coma a command to the printer (Zebra xi4) to track the status of the printer, and then return the printer memory haven't print the tag number, so you know print to which zhang, how many pieces did not print, or have finished printing.