代码之家  ›  专栏  ›  技术社区  ›  Martina

ESC-POS-USB-NET无法访问打印机异常

  •  0
  • Martina  · 技术社区  · 6 年前

    我有一台爱普生财政打印机(FP81 II)

    安装的打印机如下

    enter image description here

    enter image description here

    我正在尝试执行库的简单代码

    Printer printer = new Printer("Printer Name");
    printer.TestPrinter();
    printer.FullPaperCut();
    printer.PrintDocument();
    

    • TM-T800F型
    • TM-T800F TM-T900F型
    • 用于TM/BA/EU打印机的EPSON USB控制器

    但没什么用,我总是有同样的例外:

    Unable to access printer : ...
    
    0 回复  |  直到 6 年前
        1
  •  0
  •   J.Rouse    6 年前

    根据以前的经验,我认为你的名字可能有空格问题。因此,复制打印机的名称并粘贴到脚本中。

    1. 导航到“打印机属性”对话框
    2. 将名称粘贴到测试脚本中。

    祝你好运。

    推荐文章