Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Opening POS cashdrawer
Message
De
07/12/2009 04:35:44
Luis Santos
Biglevel-Soluções Informáticas, Lda
Portugal
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Opening POS cashdrawer
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01437840
Message ID:
01437840
Vues:
135
Hello Comunity

I have the following command to open my cashdrawer :


SET PRINTER off
???CHR(27)+CHR(112)+CHR(0)+CHR(25)+CHR(250)
SET PRINTER on

And the cashdrawer open, but also when i select another report where the printer not a pos printer but is another lasejet printer (for ex.HP officejet), when i make a preview of this report or if i print them , my program print with the POS printer.

The default printer on my OS is my POS printer because is the printer that i use all the time for printer Pos invoices.

I don´t know, but i think that the command above keep something in memory, and when i select another A4 printing report where i define my HP Officejet, my program assume that the printer is my POs printer.


Also, i have a 2 problems:
1. after my cashdrawer open, my receipt printer make line feed and cut the paper and i don´t know why.
2. My report design for my hp officejet, and where i define this printer, after sending the code for opening the cashdrawer my program use the POS printer layout, not the HP Office jet layout.

Could someone give me an ideia on how to solve theses problems.

Many thanks
Luis Santos
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform