Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Opening Cashdrawer command
Message
 
 
À
16/05/2009 20:27:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Vista
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01400258
Message ID:
01400264
Vues:
92
There's a bug in your code. You're changing VFP default printer but restoring to the Windows default printer. IOW
lcOldPrinter=SET('PRINTER',2)
* Should be
lcOldPrinter=SET('PRINTER',3)
>This works for me. You wouls have to substitute the name of YOUR receipt printer for oAPP.receipt printer. My OS is XP PRO so that may also make a difference>
>
>
>
>LOCAL lcOldPrinter
>
>lcOldPrinter=SET('PRINTER',2)
>
>TRY
>     SET PRINTER TO NAME (oAPP.receiptprinter)
>     SET PRINTER off
>     ??? Chr(27)+CHR(112)+chr(0)+chr(64)+chr(240)
>     SET PRINTER on
>     SET PRINTER OFF
>     SET PRINTER TO NAME (lcOLDPrinter)
>			
>CATCH
>FINALLY
>ENDTRY	
>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform