question

omkar avatar image
omkar asked Jacob Abrams answered

PrintViewJob how to print view on printer ?

Hi,

i had tried code
PrintJob viewPrintJob = new ViewPrintJob.Builder().view(printLayout).build(); viewPrintJob.print(getActivity(), CloverAccount.getAccount(getActivity()));

It shows toast of view sent to print but nothing gets printed can anyone suggest

Print
10 |2000

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

1 Answer

Jacob Abrams avatar image
Jacob Abrams answered

Can you go to the Help app, tap diagnostics and check the print queue to see if it is in there? Also after creating the ViewPrintJob object you can check that the public field imageFiles is not an empty array. Also check logcat for any errors or warnings.

10 |2000

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