Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

printer questions

Status
Not open for further replies.

RHankinsJr

Programmer
May 18, 2002
67
US
How are you all going about capturing printers on a peer to peer network using clipper?

For Example the network consists of the following shared printers (no novell):

User1 Printer Manifest
\\User1\Oki810ex
\\User1\Oki4w

User2 Printer Manifest
\\User2\Oki420T

User3 Printer Manifest
\\User3\Oki421T

User4 Printer Manifest
\\User4\Oki390T
\\User4\Oki491T

How are you all programatically sending information to these printers? Richard L. Hankins Jr.
Senior Programmer
Auction Services, Inc.
 
Without getting complicated, if you can suffice with 3 printers per workstation, simply use a NET USE LPTn \\PCName\PrinterName in a batch file calling the application. Within the application, or using an environment variable (SET MYPRINT=321), you can then assign output to a particular printer port for a particular job.

If you require to connect to more than 3 printers then you could run (Blinker SWPRUNCMD) an external batch file to reassign the port to another shared printer.
Ian Boys
DTE Systems Ltd
 
Okay, here is the solution that I found today. I think you all will enjoy this. It will send the data to the spooler on the other computer so there are no dos vs windows problems. Both of these work on Win 98/95/me/2k/XP they were both tested today using CL5.2e


Set Display Off
Set Alternate To "\\User1\Oki810ex\"
Set Alternate On

.. code here

Set Alternate Off
Set Alternate To
Set Display On

-OR-

Set Printer To "\\User1\Oki810ex\"
Set Device To Printer

... code here

Set Device To Screen
Set Printer To
Richard L. Hankins Jr.
Senior Programmer
Auction Services, Inc.
 
Richard,

I must try this out. Generally I don't need to use many printer but I can see how this could be very usefull in large setups. Ian Boys
DTE Systems Ltd
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top