Welcome! Log In Create A New Profile

Advanced

Strange behaviour while serial printing

Posted by Willy 
Strange behaviour while serial printing
March 06, 2024 08:32AM
Strange behavior when I send a print job to a ticket printer via a serial port.
I open a port via sOpen(Port_E, 5000,5000), after which I send data via swrite(). Then I close the port again with sClose(Port_E)

After the program starts, a dialog box will appear once.
Then it works flawlessly until the program is restarted.
Now there is one customer for whom that dialogue box keeps coming back half the time. That customer must click on the cancel button every 2 tickets.

Does anyone have any idea what's going on here?

Thank you very much in advance.
Willy Hermans
Attachments:
open | download - Printing.png (22.8 KB)
pao
Re: Strange behaviour while serial printing
March 06, 2024 12:37PM
this windows normally opens when you use some printing functions (iprint*)

You can cancel it using iWindowCancel(False) [doc.windev.com]

Regards

Paulo Oliveira
Re: Strange behaviour while serial printing
March 12, 2024 10:16AM
Thanks
It works now.

I've placed it at the start of the project
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: