Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

USB Device & Printer Pooling

Posted on 2010-08-17
3
Medium Priority
?
1,006 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 5

Accepted Solution

by:
truromeo4juliet earned 2000 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

Tech or Treat! - Giveaway

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

Introduction Often we come across situations wherein our batch files would be needing to reboot Windows for a variety of reasons. A few of them would be like: (1) Setup files have been updated whose changes can take effect only after a reboot …
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…
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.

610 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