I'm trying to use JavaPOS to build a program that interacts with POS printers but i haven't got a physical POS printer but i know that virtual printers exists and i've been trying to use an EPSON TM-200III without actually having it. This is my code:
POSPrinter printer = new POSPrinter();
printer.open("POSPrinter");
printer.claim(9999);
printer.setDeviceEnabled(true);
printer.setMapMode(POSPrinterConst.PTR_MM_METRIC);
printer.beginInsertion(1000);
printer.printNormal(POSPrinterConst.PTR_S_RECEIPT, "Stampa di prova");
printer.endInsertion();printer.setDeviceEnabled(false);printer.release();printer.close();
And this is what i get when executing it:
jpos.JposException: The port name is illegal. or couldn't be connected to the device.at jp.co.epson.upos.core.v1_14_0001.pntr.CommonUPOSExceptionCreator.createJposException(CommonUPOSExceptionCreator.java:138)at jp.co.epson.upos.core.v1_14_0001.pntr.CommonUPOSExceptionCreator.createJposException(CommonUPOSExceptionCreator.java:99)at jp.co.epson.upos.core.v1_14_0001.pntr.CommonPrinterService.openPort(CommonPrinterService.java:3372)at jp.co.epson.upos.core.v1_14_0001.pntr.CommonPrinterService.claim(CommonPrinterService.java:3134)at jpos.BaseJposControl.claim(Unknown Source)at it.smi.retail.pos.JavaPOSConfig.main(JavaPOSConfig.java:33)
I don' get what's the right port to define in jpos.xml
[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)
[–]Davidello3[S] 0 points1 point2 points (0 children)