Solved

USB Device & Printer Pooling

Posted on 2010-08-17
3
1,001 Views
Last Modified: 2012-05-10
I have several cash registers with cash drawers that open by writing a file to the lpt1: device.  The newest cash register/cash drawer has a USB interface.  I got it to work with lpt1: device by changing the printer properties.  Specifically, Star TSP743II -> Properties -> Ports tab -> check off both lpt1: and usb001ports and check of Enable printer pooling.  When I restart the computer these settings are no longer set.  How can I get them to stick? Printer Properties
Dim intFF as integer

intFF = FreeFile
Open "lpt1:" For Output As intFF
Print #intFF, Chr(7)
Close #intFF

Open in new window

0
Comment
Question by:MariaHalt
  • 2
3 Comments
 
LVL 5

Accepted Solution

by:
truromeo4juliet earned 500 total points
ID: 33458428
how about re-writing the code to print to "cash:" port, and renaming the used port on each PC to "cash:" ?
0
 

Author Comment

by:MariaHalt
ID: 33458505
truromeo4juliet:  

I like your idea and I think it would work, but  I'm under the gun and this is the solution I'm actually going to implement for now::

If strPOS = "NewCashRegister" Then
   Open "\\<mycomputername>\<mysharedprintername>" For Output As intFF
Else
   Open "lpt1:" For Output As intFF
End If
0
 
LVL 5

Expert Comment

by:truromeo4juliet
ID: 33458633
that's a simplisticly beautiful code. I like it.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just about everyone has an old PC laying around.  Ask anyone in the IT industry, whether they are a professional or play in it as a hobby.  From outdated Desktops to cheap "throwaway" laptops, they are all around and not as hard to "fix up" as you m…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question