Set Up Bluetooth Thermal Printer
Configure a custom print layout suitable for 3-inch endless paper print on Bluetooth thermal printers in Visual Studio Code based Modeler and deploy the configuration to your Consumer Goods (CG) Cloud mobile app users.
Required Editions
Available in: Lightning Experience Available in: Enterprise and Unlimited Editions that have Consumer Goods Cloud enabled |
Make sure that you know how to define print layouts in XML.
-
Design and deploy a custom print layout.
-
In Visual Studio (VS) Code based Modeler, create a PrintLayout contract or modify
an existing contract with desired content layouts and data to ensure proper formatting
and printing for a 3-inch wide paper print output.
See Sample Print Layout for PDF Printing on 3-inch Bluetooth Thermal Printer for guidance on layout definition.
-
Build the modified contracts by running this command in VS Code based Modeler:
sf modeler workspace build - Review the formatting and layout of the invoice on the Preview PDF screen on the simulator app. Make the necessary corrections and check the preview again.
-
Generate the deployment package by running this command in VS Code based Modeler:
sf modeler workspace package - To deploy the customized contracts to your sales rep users, from the App Launcher, find and select Deployment Packages.
- On the Deployment Packages page, import the deployment package and assign the modified design contract package to your CG Cloud mobile app users.
-
In Visual Studio (VS) Code based Modeler, create a PrintLayout contract or modify
an existing contract with desired content layouts and data to ensure proper formatting
and printing for a 3-inch wide paper print output.
-
To activate the thermal printer action on the CG Cloud mobile app:
- In Setup, find and select Custom Metadata Types.
- On the All Custom Metadata Types page, click the Manage Records link next to Sync Feature Setting.
- Find the Thermal Printer setting and click its Edit link.
-
In JSON Settings, set
enabledtotrue. - Save your changes.
-
In the CG Cloud mobile app, generate a print output.
- Open the CG Cloud mobile app and log in as a sales rep user, in online mode.
-
To deploy the custom print layout in the app, complete the sync process.
After a successful sync, the printer icon appears on the PDF Preview screen of the CG Cloud mobile app.
- Connect your mobile device to a 3-inch endless paper Bluetooth thermal printer.
- Generate the PDF of an invoice or report in the mobile app and screen.
-
On the PDF preview screen, tap the printer icon
.
-
On the printer list screen, tap the desired printer and tap
to initiate the printing action.
Did this article solve your issue?
Let us know so we can improve!

