Reputation: 121
I have TSC TA210 printer and integrating it with my portal built in ASP.NET core.
QRCODE is working fine but when i write comma (,) in text , it automatically converts it into 0.
Example:
TSCLIB_DLL.sendcommand("QRCODE 40,320,M,4,M,0,M2,\"name:abcd , surname:pqrs\"");
This line generates QR code and when i read that code using qr code scanner i get text like this
name:abcd 0 surname:pqrs
So basically how can i use characters like , and & in tsc printer code.
Upvotes: 0
Views: 2018
Reputation: 1
When you need a string at a parameter fo TSPL command you need to do one of two options:
So, try something like this:
TSCLIB_DLL.sendcommand("QRCODE 40,320,M,4,M,0,M2,"\"name:abcd , surname:pqrs\"");
or
TSCLIB_DLL.sendcommand("QRCODE 40,320,M,4,M,0,M2,"\"name:abcd\" , \"surname:pqrs\"");
Upvotes: 0