You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey,
i've noticed an "issue" which definitely slows down printing receipt in my POS system.
The issue involves printing each item in listbox, here's a sample code:
Everytime the method Write is called, it will send the bytes to the printer, which will print accordingly.
If you don't want so many print commands sent out, you should not put printer.Write inside a for loop...
Instead, you could create a byte[] variable to hold first all the data you wish to print at once, and them after you have the variable holding all the needed data, call printer.Write just one time.
Hey,
i've noticed an "issue" which definitely slows down printing receipt in my POS system.
The issue involves printing each item in listbox, here's a sample code:
` for (int i = 0; i < listBox1.Items.Count; i++)
I would be thankful for every help.
Cheers
The text was updated successfully, but these errors were encountered: