Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Opening Cashdrawer command
Message
 
 
To
16/05/2009 20:27:33
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Vista
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01400258
Message ID:
01400264
Views:
93
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform