简体   繁体   中英

UWP .Net POSPrinter Not Identifying Epson USB Receipt Printer

I am following the example from the following Repo: https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/PosPrinter .

In the Scenario1_ReceiptPrinter.xaml.cs I have modified the FindReceiptPrinter to run a FindAllAsync() like below:

 DeviceInformationCollection deviceCollection = await DeviceInformation.FindAllAsync();

When running the function that way versus passing in a device selector I am able to find the device ID which matches the printer SymbolicName in my Registry for the installed printer. However, the printer object is always null even when I explicitly pass in the printer Id.

I'm not sure if there is an issue with the way my printer is installed or if I need to call it differently when it is a USB Printer. Below are some screen shots of my modified code for debugging purposes:

Device Collection Populated:

设备集合已填充

Printer Found:

找到打印机

Printer Object Null:

在此处输入图片说明

According to the official document, USB connected printers are currently not supported.

Support is currently limited to the Network and Bluetooth device models listed in the tables below. USB connected printers are currently not supported. Please check back for additional support to be added in the future.

在此处输入图片说明

For mor info, please see Device support in POS Printer .

The USB receipt printer works on the latest version of Windows 10 (OS Build: 16299.431).

we need to install the OPOS ADK to create POS receipt printer, which is available at the windows folder of printer driver( path: PRINTER\\Windows\\OPOS ADK). After installing the OPOS ADK setup we have to create the POS printer by using the EPSON OPOS ADK SetupPOS .

I have explained about how to create POS printer using EPSON OPOS ADK SetupPOS using the following screen shots:

Step 1: Righ click on the POSPrinter and select Add New Device.

在此处输入图片说明

Setp 2: Press Next

在此处输入图片说明

Step 3: Click Check Health Interactive and Press Start it will give the “OPOS SUCCESS” messgae as in the screen shot. Then restart the system You have configured the Receipt printer successfully and you can start printing.

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM