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

Print long arabic Text #18

Open
Samiakaraeen opened this issue May 16, 2020 · 0 comments
Open

Print long arabic Text #18

Samiakaraeen opened this issue May 16, 2020 · 0 comments

Comments

@Samiakaraeen
Copy link

greeting iam using zebra zq320 i managed to print arabic text but he problem is the text was too long there will be a problem that not all the text is printed i tried to split the next to several part for example the code blew i tried to send it 3 times first 2 will print correct third will print maybe 1 or 2 lines from it
iam using zpl lang
i tried even to change the
chunkSizeBytes,queueSleepTimeMs
but no hope can anyone suggest

        zplData="";
 zplData = zplData + " ^XA^CWZ,E:TT0003M_.FNT^FS";
 			 
				zplData = zplData + "^MNN^LL800";

for(int i=10;i<20;i++)
{
 	zplData = zplData + " ^FO05," + start.toString() + "^CI28^AZN,30,30^FD  "+i.toString()+" ^FS";
				zplData = zplData + " ^FO140," + start.toString() + "^CI28^AZN,30,30^FD 20" + " ^FS";
					zplData = zplData + " ^FO230," + start.toString() + "^CI28^AZN,30,30^FD 500" + " ^FS";
				zplData = zplData + " ^FO385," + start.toString() + "^CI28^AZN,30,30^FD حليب تنوفا 2 لتر" + " ^FS";
				start = start + lineSpace;
}
      
				zplData = zplData + " ^FO05," + start.toString() + "^CI28^AZN,30,30^FD ______________________________________" + " ^FS";
				
  				zplData = zplData + " ^XZ";
        
    Uint8List encArabic1 = await CharsetConverter.encode("UTF-8",zplData);
ticket.textEncoded(encArabic1,
    styles: PosStyles(codeTable: PosCodeTable.arabic));
 
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

1 participant