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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DOS 2.6a Capture port (lpt4)

Status
Not open for further replies.

fitedgar

MIS
Apr 24, 2002
238
US
Fox Pro DOS 2.6a
I have a dos application which requires 5 printers
I have the ports captured as follows:
lpt1= dot matri 1 ( \\SERVER1\Q1)
lpt2= LASER 1( \\SERVER1\Q2)
lpt3= THERMAL PRINTER ( \\SERVER1\Q3)

I want to select a 4th printer to print to lpt1
I use the following:
RUN "net lpt1 /DELETE"
RUN "net use lpt1 \\SERVER1\Q4"
REPORT FORMAT C:\TEMP\DEL.FRX TO PRINTER

This works, but it prints a banner page prior to the actual print out. The banner and form feed settins for the printer are unchecked.

**** 2-nd

Can I have LPT4 captured to \\SERVER1\Q4" and lpt5 captured to \\SERVER1\Q5
I am aware of dos limitations which only recognizes lpt1-lpt3

***** 3-rd
set printer to \\SERVER1\Q5 does not work

Any Ideas?
Thank you in advanced
EMC
 
For the banner issue, you may be able to get rid of it using:

RUN "net use lpt1 \\SERVER1\Q4 /nb"

2nd:
Sorry, can't help there. I don't know.

3rd:
Try:
set printer to name "\\SERVER1\Q5"
Dave S. [cheers]
 
Thank You Dave, However...
I am using fox pro dos 2.6a

1- The /NB is not supported.

3 -Set printer to name "\\SERVER1\Q5" does nothing.
 
When you say: "The banner and form feed settins for the printer are unchecked." Where are you looking? Within the Foxpro program or at the raw network print queue settings?

Typically the Banner and extra Form Feed are typically generated by the Network Print Queue and controlled by its settings.

With the older versions of Novell (such as 3.11 or 3.12) the Capture command needed to be something like the following:
CAPTURE l=1 q=dotmatrix1 nb nff ti=45

Causing:
Capture LPT1 to Print Queue "dotmatrix1", No Banner, No Form Feed, Timeout = 45 sec

Good Luck,
JRB-Bldr
VisionQuest Consulting
Business Analyst & CIO Consulting Services
CIOServices@yahoo.com
 
Thank You JRB-Bldr
It works fine in an novell environment, hoever, i am using
WIN 98 se workstation with win 2000 server. Capture command does not apply here.
Thank You
EMC
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top