question

jasonbanks avatar image
jasonbanks asked ·

Printing on FLEX with monospace font

I have searched with no luck. Does someone have an example of printing on the FLEX using a monospace font? The default font for some reason is NOT monospace (which to me is not correct). Have a tradeshow this weekend, and need to get this working asap. I can print fine using TextPrintHJob, and have tried ViewPrintJob, but it fails when it reaches the system print queue (no exception when creating).
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

Jeffrey Blattman avatar image
Jeffrey Blattman answered ·

ViewPrintJob can be tricky because of layout widths and things when applied to a layout that's never really laid out by Android. I suggest using ImagePrintJob. Google for how to turn your Android view into a bitmap, and test by writing that bitmap to a file and ensuring it looks like you expect before trying to send it to the printer. Remember for Flex it needs to be 384px wide.

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.

Welcome to the
Clover Developer Community