Printing from mobile and backend apps


SERVICE This class is a "service" and it is automatically injected if declared as a member in the constructor of the consuming class. - See the constructor section below for details - See the Automatic Instance Injection page for details on the topic

The PrintService class provides methods to work with printers

No properties

There is a difference in the behaviour of the PrintService API in mobile and backend apps.

print method sends the supplied text to the printer to print it

printImage(options): Promise<void>

The printImage sends and prints an image to a connected printer

getPrinters(): Promise<string[]>

getPrinters method returns list with the names of of bluetooth paired printers. It actually returns all bluetooth paired devices, so the developer needs to provide a mechanism for the user to point out the actual printer name and save it into a configuration.

Last updated

Dynamics Mobile provided by Mobile Affairs Ltd. | 1712 Sofia, Bulgaria, Alexander Malinov 51 |