printing - POS Printer release method -
I am developing an application that prints the receipt through a POS printer. It is necessary that my application could communicate with POS printers from many examples of my application. My POS printer is fit in the network and I want to be able to print from every instance of my application. It works fine, but before the print method, I have to claim the printer and it takes 0.8 seconds (too long) and after the print method I need to release the printer and which is 3.1 (!!!! ) Takes seconds.
Can anyone help claim me and release it faster?
Ask your printer vendor (or whatever service item provides for your printer.) < / P>
Your Service Object ClaimDevice () is doing extra stuff during initialising, such as to ensure uploading logo bitmaps to printers, it starts with a coherent position if you have a logo with your printer Configured, then delete them to see it Try that it increases the claim ().
Before reporting the device there may be a delay in ensuring that the print buffers are empty. The device calls the calling release device () to the port to shut down the device. It is possible that the closure of the port stops printing it immediately, which will skip past print command like "Feed and Cut Paper". I hope this is not your case because it can take device firmware updates to fix it.
Comments
Post a Comment