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

Impact printer POSColumn Spacing Issue #28

Open
atish-pun opened this issue Sep 29, 2023 · 4 comments
Open

Impact printer POSColumn Spacing Issue #28

atish-pun opened this issue Sep 29, 2023 · 4 comments

Comments

@atish-pun
Copy link

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.

@atish-pun atish-pun changed the title POSColumn spacebetween Impact printer POSColumn Spacing Issue Oct 1, 2023
@chipcoiga
Copy link

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

395515432_2080647762275049_8980552944673749901_n

@atish-pun
Copy link
Author

atish-pun commented Oct 30, 2023

@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.

@meetbrahmbhatt91
Copy link

@atish-pun We are getting similar errors. Have you found any solution to this?

@atish-pun
Copy link
Author

atish-pun commented Jul 6, 2024

@meetbrahmbhatt91, unfortunately, I have ignored it for impact printers as it's the issue from the package and it works well for thermal printers.

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

3 participants