LinePrinterSample
This sample application demonstrates printing from Windows10IoT ARM based computer to a Honeywell mobile printer using the LinePrinter API.
Included with the application is a printer_profiles.JSON file (in the “assets” subfolder) that provides standard printer commands and attributes for several Honeywell printer models running the ESC/P language: PR2, PR3, PB21, PB31, PB42, and PB51.
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-sdk\Samples\UWP\LinePrinterSample.
2. Double click on LinePrinterSample.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. In the top box enter the printer model you will be printing on. It should match one of the entries in the printer_profiles.JSON file found in the honeywell-uw-printing-sdk\Samples\UWP\LinePrinterSample\LinePrinterUW\Assets directory. It should be one of: PR2, PR3, PB21, PB31, PB42, PB51 or P6824.
3. Do not change the second box containing “Bluetooth”
4. In the third box, 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.
5. 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.