rkone / sharpzebra

A .net library that simplifies printing to Zebra printers in their native EPL2/ZPL languages without needing to know EPL2 or ZPL.
MIT License
89 stars 34 forks source link

win 10 don't exist SymbolicLink item #6

Closed JoygenZhang closed 6 years ago

JoygenZhang commented 6 years ago

path = subKey.GetValue("SymbolicLink").ToString(); throw an error.

Can you fix it in Win10?

rkone commented 6 years ago

I don't have a USB printer available to test with now. Can you paste your registry data for the HLKM\SYSTEM\CurrentControlSet\Control\DeviceClasses\{guid}\##?#USB#VID_0A5F* key?

macleo commented 6 years ago

same with me, under win10 can't using

        //TODO: Query registry for specific printer only instead of enumeration.
        Dictionary<string, string> plist = EnumDevices();
        if (plist.ContainsKey(PrinterName))
            this.interfaceName = plist[PrinterName];
        else
            throw new Exception("Cannot locate USB device");

Will u fix it?thx

macleo commented 6 years ago

capture can't print Chinese. thx

rkone commented 6 years ago

Hi macleo, I will update the EPL functions to support specifying the codepage for character encoding. It looks like you want to use 936 for Chinese (traditional is 950). I will look into the win10 USB printing issue shortly.

rkone commented 6 years ago

I've shared a new version that fixes the USBPrinter issue. Please open a new ticket if you encounter further issues.

macleo commented 6 years ago

thank you rkone, I pull try it.