Solved

USB Device & Printer Pooling

Posted on 2010-08-17
3
1,002 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

I don't know if many of you have made the great mistake of using the Cisco Thin Client model with the management software VXC. If you have then you are probably more then familiar with the incredibly clunky interface, the numerous work arounds, and …
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.

820 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