I have Pax A920 which runs with android . So how to using printing service in java?
Asked
Active
Viewed 3,028 times
4
-
Please contact the vendor's support desk. [Terminal — PAX A920](https://ventrata.com/solutions/hardware/terminal-pax-a920/) – kunif Sep 05 '20 at 23:11
-
Vendo's not responding – Abanuob Fouad Sep 07 '20 at 14:43
-
If there is no way to ask the sales company that handles it, there seems to be no way. You just have to wait for someone you know to answer. – kunif Sep 07 '20 at 14:46
1 Answers
1
I suggest you to use the Neptune api. you can google pax 920 neptune api demo and the fist link that shows up (https://docs.hips.com/docs/pax-a920) contains a demo that shows all the basic functions (including the printer) and you can run it on your device:
In the Application you first need a function to retrieve the IDAL:
public static IDAL getDal() {
if(dal == null){ //dal is a private static IDAL variable of the application
try {
dal = NeptuneLiteUser.getInstance().getDal(context);
} catch (Exception e) {}
}
return dal;
}
then in your activity you can just do the following:
try {
IPrinter printer= MyApp.getDal().getPrinter();
printer.init();
printer.printStr("Your text",null);
printer.start();
} catch (PrinterDevException e) {
e.printStackTrace();
}

IAmUser
- 78
- 5
-
Any idea how to use `void setFontPath(java.lang.String fontPath)` function? – Mohamed Medhat Nov 28 '21 at 11:37
-
@MohamedMedhat nope sorry, I had to change my font only slightly and I used `void fontSet(EFontTypeAscii asciiFontType,EFontTypeExtCode fontTypeExtCode)` Did you try giving it the path of a .ttf file? Still, I would be surprised if it worked with any type of font – IAmUser Nov 29 '21 at 12:28
-