Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Printing issue with TM-T20III on 3.0 version #277

Open
us259er opened this issue Sep 3, 2024 · 2 comments
Open

Printing issue with TM-T20III on 3.0 version #277

us259er opened this issue Sep 3, 2024 · 2 comments

Comments

@us259er
Copy link

us259er commented Sep 3, 2024

Hi. I have an issue: recently I upgraded the library from version 1.6 to 3.0 and my printer suddenly stopped working. Even the code from readme does absolutely nothing. On older versions everything works fine... but I need new features like encoding selection.

Edit: My printer is connected via USB and I'm using the Virtual Com Port driver

@igorocampos
Copy link
Collaborator

igorocampos commented Sep 18, 2024

Hi @us259er are you able to debug and find what exactly is not working?

As far as needing encoding, that haven't change. The encoding is 100% optional, and if not informed, code will use the same as previous versions. You can check that out here

            if (Encoding is null)
            {
                // TODO: Sanitize...
                return data.ToCharArray().Select(x => (byte)x).ToArray();
            }

            return Encoding.GetBytes(data);

@us259er
Copy link
Author

us259er commented Oct 31, 2024

Hello, sorry for not replying for almost 2 months. I bought a second printer: TM-T88V to check if my previous one was faulty, but I couldn't print with this one either. I have resolved my issue by adding

Thread.Sleep(500);

at the end of my program.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants