Open Yalcinmehmet opened 7 months ago
I'm planning to change the implementation of our printing process to potentially solve the intermittent printing issues on the cash register computers. Instead of sending print commands consecutively via PrintAsync for each part of the receipt, I intend to gather all the data first into a single byte array. This array will then be sent to the printer in one go. This approach should help in reducing the overhead of multiple network transactions and may manage printer resources more efficiently. I'll update this thread with the results of this modification to see if it resolves the unresponsiveness and failure issues we are experiencing.
Sounds like your solution is what I would suggest :)
Hope it went well.
Environment:
` private async Task PrintSale(Sale sale) { try { string printerIPAddress = this.PrinterIPAddressTextBox.Text; IPAddress ipAddress; bool isValidIP = IPAddress.TryParse(printerIPAddress, out ipAddress);
}`
Issue Description: The application works as expected on my development machine, allowing me to print multiple receipts consecutively without issues. However, on the cash register computers, which are less powerful, prints are intermittently aborted. After a print job is aborted, the printer becomes unresponsive and cannot be accessed until it is restarted.