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

Printer Not Ready on LPT4

Status
Not open for further replies.

SSDESIGN

Programmer
May 11, 2003
71
US
Client running a Foxpro for DOS LAN application with three printers each attached to a Win XP machine. Two are now in use as LPT2 and LPT3. LPT1 is not being used since it has the potential of conflicts with windows spooling. To provide an LPT port for the third printer, the LPT4 port was created on each computer with an edit of the registry in ...Windows\CurrentVersion\Ports. Once created, the LPT4 port was tested successfully in the DOS window using "copy con lpt4" "test message" ending with Ctrl+l and Ctrl+z. Each time the new LPT4 port is tested in the application, the error "Printer not Available" occurs. However, the same test works for LPT2 and LPT3.

Again, thank for the support....
 
Look up the syntax for SET PRINTER
I see reference there to LPT1, LPT2 and LPT3 but not LPT4

FPD does not appear to handle LPT4
 
You might want to think about doing a Google search for:
foxpro lpt4

You will get a number of 'finds' and perhaps one of them will give you what you need.

Good Luck,
JRB-Bldr
 
When you ran your test at the DOS windows, did you use CMD or COMMAND in START + RUN. One of the will be used by your application (which?), you may have tested using the other.
 
DOS generally does not support more than LPT1-3.
What you tried (copy ...) was done in CMD32 = in 32 bit console program, not in 16bits DOS.
You can access to whatever "file" device (like "LPT4" or "COM12") from dos foxpro, but you need call some dos fn. for this. If you would like, I can upload some proc. for it.

Tomas
 
Thanks for the update...

Since I'm not successful at printing to LPT4 from within a DOS application, I would appreciate the uploading of some proc as a guide. FYI - I have also used the 16 bit command.com dos window with success at printing to lpt4. The problem appears to be with 2.6 not with the OS.

Again, thanks for the support….
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top