parthraj panchal
parthraj panchal

Reputation: 121

TSC printer QRCODE command converts comma into 0 automatically

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

Answers (1)

ECB-RS-BR
ECB-RS-BR

Reputation: 1

When you need a string at a parameter fo TSPL command you need to do one of two options:

  • Open a string signal inside the string of the command;
  • Or close the string of the command and open a new string;

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

Related Questions