Using JavaPoS with in Gambas

Post

Posted
Rating:
#1 (In Topic #620)
Enthusiast
AndyGable is in the usergroup ‘Enthusiast’
Hi All,

Does anyone know how I can use the JavaPoS drivers with Gambas? (https://github.com/JavaPOSWorkingGroup/)

The JavaPoS is designed to act as a go between between the PoS Hardware and the PoS Software and it allows the same program to
talk to different printers, scanner etc (the idea is the code base does not need to know what the printer supports the JavaPoS does
that as you install the correct JavaPoS Files for the given printer)

On the software side all we have to do is talk to the JavaPoS interface

Code (gambas)

  1. With PoSPrinter
  2.             .Open(PrinterOPoSName)
  3.             .Claim(1000)
  4.             .DeviceEnabled = True
  5.             .RecLineChars = 56
  6.             .CharacterSet = 850 ' Set the Display to UK Mode so the £ shows correctly
  7.  
  8.             If .CapRecBitmap = True And PrintGraphicalLogo = "Yes" Then
  9.                 AddToStartupList("Placing Graphical Logo(s) Into The Receipt Printer's Memory")
  10.                 Application.DoEvents()
  11.                 Call SetGraphics()
  12.                 AddToStartupList_Done("Completed")
  13.  
  14.                 If WesternUnionActive = "Yes" Then
  15.                     AddToStartupList("Placing Western Union Logo Into The Receipt Printer's Memory")
  16.                     SetgraphicsWesternUnion()
  17.                     AddToStartupList_Done("Completed")
  18.                 End If
  19.             End If
  20.  
  21.             If PrintTestPrint = "Yes" Then
  22.                 AddToStartupList("Sending Test Print To The Printer")
  23.                 Application.DoEvents()
  24.                 Call TestPrint()
  25.                 AddToStartupList_Done("Completed")
  26.             End If
  27.         End With

the above is a example of how we talk to the OPoS Driver for Windows (that is the Windows version of the JavaPoS Drivers)

The PrinterOPoSName is the Name of the Device that was set up with in JavaPoS / OPoS

Is this possible with Gambas or am I pushing the application to far to quickly?
Online now: No Back to the top
1 guest and 0 members have just viewed this.