ESC-POS-USB-NET Unable to access printer exception

1.1k Views Asked by At

I have an EPSON fiscal printer (FP 81 II) I installed its drivers and now I'm able to print test document to the printer and it's ok.

The installed printer is the following

enter image description here

enter image description here

I'm trying to execute the simple code of the library

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

in Printer Name i tryed everithing:

  • TM-T800F
  • TM-T800F TM-T900F
  • EPSON USB Controller for TM/BA/EU Printers

But nothing works, I have always the same Exception:

Unable to access printer : ...
1

There are 1 best solutions below

0
J.Rouse On

From a previous experience I am thinking you may have a whitespace issue in the name. So copy and paste the name of the printer into your script.

  1. Navigate to the "Printer properties" dialog
  2. In the General tab copy the entire name. (note there may be whitespace characters at the end of the printer name so be sure to capture those characters)
  3. Paste the name into your test script.
  4. Test

Good luck.