esc_pos_bluetooth icon indicating copy to clipboard operation
esc_pos_bluetooth copied to clipboard

Print long arabic Text

Open Samiakaraeen opened this issue 4 years ago • 0 comments

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));
 

Samiakaraeen avatar May 16 '20 11:05 Samiakaraeen