Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / General 2 / March 2004



Tip: Looking for answers? Try searching our database.

VB freezing upon trying to open a cash register drawer  not connected to LPT1

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Avi - 07 Mar 2004 21:48 GMT
Hi,

I have a VB application that is reuired to open a register drawer that
is connected to en epson tm-822 printer, which, in turn, is connected
to LPT1.  When the printer and the drawer are connected there is no
problem and everything works fine.  However, there are some cases when
the printer is not connected (i.e, remote site).  In such case once VB
executes the code lines responsible for opening the drawer, the
application freezes, which forces me to kill V VB instance through the
task manager.  I think I have an idea what needs to be done, and if
I'm right, then I don't know how to do it.  To be more specific,  I
think I need to check whether the printer and/or the drawer is
connected.  If the printer is connected, I just execute the code
responsible for opening the register.  If it's not connected, then I
skip the process of opening the register.  In short, it all boils down
to figuring out whether LPT1 port is connected to the printer.  Does
anyone have any idea what exactly I have to do.  I came across
port32.dll or winsock.dll, and if that may do the trick for me, then I
would be greatly appreciative if someone pointed to me how to employ
either one of those dll.  The following is the code that opens the
drawer.

   Open "LPT1" For Output As #1
   Print #1, Chr(27) & Chr(112) & Chr(0) & Chr(25) & Chr(250)
   Close #1

Thank You In advance

Avi
mickey - 07 Mar 2004 23:07 GMT
>Hi,
>
[quoted text clipped - 25 lines]
>
>Avi

perhaps this helps:
http://shop.store.yahoo.com/posperipherals/eprecprinvis.html

Groetjenz,

Mickey
Signature

#### gewoan skrieve su ast ut seist ####

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.