question

prathapsaireddy avatar image
prathapsaireddy asked ·

Not able to print the receipts using printer in a correct alignment

Hello guys, we've been trying to print the receipt using TextPrintJob and are encountering exceptions while using ImagePrintJob and Viewprint from the past few days. I am pasting here an attachment related to the receipt, so that you guys can get an understanding.


Could, anyone please help me sort out this

Print
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
Jeffrey Blattman avatar image
Jeffrey Blattman answered ·

It's not using a monospace font so you won't be able to do that. You can use View/ImagePrintJob and align it however you like (but it's more work obviously than concatenating strings).

Share
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community