This sample application demonstrates printing from Windows10IoT ARM based computer to a Honeywell mobile printer using the LablePrinter API.
Included with the application is a printer profiles.JSON file (in the “assets” subfolder) that provides standard printer commands and attributes for Honeywell printer models PB22 and PB32 running the Fingerprint language.
Runtime Requirements and Dependencies
You may build the sample with Visual Studio 2015 using the following steps.
1. Find the location you copied the honeywell-uw-printing-sdk files, and navigate to honeywell-uw-printing-dk\Samples\UWP\LabelPrinterSample.
2. Double click on LabelPrinterSample.sln. This should open Visual Studio, and automatically load the solution into it.
3. Make sure the Solution Platform is set to: ARM
4. Under the “Build” tab of the toolbar, click “Rebuild Solution”.
After building, you may have a warning:
“warning CS1998: This async method lacks
'await' operators and will run synchronously. Consider using the 'await'
operator to await non-blocking API calls, or 'await Task.Run(...)' to do
CPU-bound work on a background thread.”
This is expected and may be ignored.
2. The Printer Settings screen is the default screen when application starts:
- Select the Printer Id from ComboBox. It should match one of the entries in the printer_profiles.JSON file found in the honeywell-uw-printing-sdk\Samples\UWP\LablePrinterSample\LablePrinterSample\Assets directory, such as PB22 and PB32.
- In the Bluetooth MAC Address textbox, enter the address of the printer you are printing to. The address should be of the form: “nn:nn:nn:nn:nn:nn” where each n is a hex digit.
3. To print Item Label:
- Click on the second icon of left option panel to display the “Print Item Label” screen, or click on the “Hamburger” icon at top left corner to display the options list, then click on the “Print Item Label” option.
- Enter the barcode name and item number as they are required.
- Make sure the printer and the mobile computer have been paired, and press the “Print” button. Note you may get a pop-up on the mobile computer asking for permission to access the printer. If so, you must confirm that it may in a timely manner before printing will start.
4. To print URL Label:
- Click on the third icon of left option panel to display the “Print URL Label” screen, or click on the “Hamburger” icon at top left corner to display the options list, then click on the “Print URL Label” option.
- Enter the URL address, Line 1 text, and Line 2 text as they are required.
- Make
sure the printer and the mobile computer have been paired, and press the
“Print” button. Note you may get a
pop-up on the mobile computer asking for permission to access the printer. If so, you must confirm that it may in a
timely manner before printing will start.
5.
To exit the LablePrinterSample application:
– Press and hold the hardware
back arrow key.
– Click the “X” exit icon from LablePrinterSample application.