Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to Open Cash Drawer With VFP
Message
 
À
04/09/2005 21:30:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP
Network:
Novell 4.x
Database:
Visual FoxPro
Divers
Thread ID:
01046513
Message ID:
01046724
Vues:
109
Leo,

>
> But how to use your class in my program
> Please show me an example
>

Well first of all, You will need the API installed on Your computer. Please Do check with Epson's WebSite or with Your dealer for the driver that contains the API. It's been a long time since I worked with it but I think it was in the normal driver's package.

You will have EpsStmApi.Dll on Your computer then. Please check for that.

Once this is done, It should be something like:
loDrawer = newobject("cstDrawer", "MyClass.vcx")

*-- Set the Printer-Driver's Name
loDrawer.c_Driver = "EPSON TM-T88II(R) Receipt"

*-- Set the drawer, that should be opened. 
*-- Some Printers allow to drive two drawer.
loDrawer.n_Drawer = 1

*-- ... and how long the pulse should be
loDrawer.n_Pulse = 1

*-- Then try to open it and if it fails, check 
*-- the Errortext
if ! loDrawer.OpenDrawer()
    MessageBox("Oooops..."+ loDrawer.c_ErrorText)
endif
That should be it. Most of the Properties You do not even have to be set, as the standard values will do or can be pre-set in the class.

HTH
Regards from Berlin

Frank

Dietrich Datentechnik (Berlin)
Softwarekombinat Teltow (Teltow)

Frank.Dietrich@dd-tech.de
DFPUG # 327
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform