btPrinterPrint
Last updated
Sends data to a printer to print the required document.
text
The data to print.
String/Text
-
-
Yes
N/A
The function to be executed if the data to be printed is sent to the printer successfully.
The function to be executed if the data to be printed is not sent to the printer successfully.
Coming Soon.
The user wants to print a document from the device.
Call the function btPrinterPrint. Call the function formatToCPCL in the text parameter of the function to convert the text to CPCL format for printing.



Call the function infoDialog in the callbacks of the btPrinterPrint function to view the status.


If the document is printed successfully, the success infoDialog will appear, otherwise the error infoDialog will appear.

Last updated