Open atish-pun opened 1 year ago
The same.
bytes += generator.row([
PosColumn(
text: 'MAT HANG',
width: 5,
styles: const PosStyles(align: PosAlign.left),
),
PosColumn(
text: 'SL',
width: 1,
styles: const PosStyles(align: PosAlign.center),
),
PosColumn(
text: 'D.Gia',
width: 3,
styles: const PosStyles(align: PosAlign.right),
),
PosColumn(
text: 'T.Tien',
width: 3,
styles: const PosStyles(align: PosAlign.right),
),
]);
@chipcoiga, the issue mentioned by you may be due to incorrect paper width i.e. 58 or 80 mm. So, you can try adjusting the PaperSize given by this package with the paper size accepted by the respective printer. Hope it will fix your encountered issue.
I encountered an issue of another type while printing in a dot-matrix/impact printer instead of a thermal printer.
@atish-pun We are getting similar errors. Have you found any solution to this?
@meetbrahmbhatt91, unfortunately, I have ignored it for impact printers as it's the issue from the package and it works well for thermal printers.
EPSON TM-U220D printer is unable to align right the text in poscolumn to get the output of spacebetween. How to resolve this issue? Instead of spacing, it prints random text.