Microsoft Access Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMicrosoft Access Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old December 2nd, 2004, 11:14 PM
arnoldcch arnoldcch is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 1 arnoldcch User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy PRINT#1 - Ejecting Cash Drawer

Dear All,

I got some sample code in QBASIC and try to convert them to run in VBA/MSAccess. Anyone knows how to do that? Very much appriciated for your help.......

' eject drawer through COM1
OPEN "COM1:300,N,8,1"
FOR RANDOM AS #1
PRINT #1, "00000000"

' eject drawer through EPSON printer
PRINT #1, CHR$(&h1b); "p; CHR$(0); CHR$(100); CHR$(250)

I've tried this in the OnClick event and tried to send through Epson printer from LPT1 but doesn't work...... what's wrong with that???

------------------------------------------------
Private Sub Eject_Drawer_Click()
On Error GoTo Err_Eject_Drawer_Click

'String For Drawer through LPT1????

Open "LPT1:300,N,8,1" For Random As #1
Debug.Print (&H1B) & "p" & Chr$(0) & Chr$(100) & Chr$(250)
Close #1

Exit_Eject_Drawer_Click:
Exit Sub

Err_Eject_Drawer_Click:
MsgBox Err.Description
Resume Exit_Eject_Drawer_Click


End Sub
--------------------------------------------------------

Thousands thanks if you could help me to guide me / justify the above error!!!!!



~Arnold~

Reply With Quote
  #2  
Old December 18th, 2004, 09:54 AM
YSTan YSTan is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 1 YSTan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Dear

I also facing the same problem. If someone have their solution, please help me to solve it. Thanks.

Best Regards:
Tan

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft Access Development > PRINT#1 - Ejecting Cash Drawer


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway