dos printing in laser jet printers

  • Thread starter Thread starter movieguy
  • Start date Start date
  • Replies Replies 5
  • Views Views 5,736

movieguy

Newbie
Messages
14
Location
NA
ISP
bsnl
Hi, TO all users of broandband forum,I had a great problem, i had made a program in foxpro, it is running successfully and printing in Lpt port of dot matrix printer. Now i need to print the result on laser jet printer. But it is a dos based program and not printing in laser jet printers. can somebody solves this problem because most of laser jet printer have usb cable and they are installed on virtual printer port.Waiting for replyMovieguy
 
If you are running this program under windows, you can "remap" LPT to any other printer port.This command (net use lpt1: \\printer server\print share) might help under windows.
 
This command net use lpt1: \\printer server\print share only works when a dotmatrix printer is installed on lpt port not on laser printer because laser printer use usb port and this is the main problem. give me solution for laser jet prinersmovieguy
 
Do you get some error? Can you share out put of this command?

What is the output of this command :
Code:
dir c:\ > PRN
 
It won't work. That's a known tradeoff between Parallel Ports, Usb Ports & Laser Printers & I don't think there is any solution for it. Laser Printers & USB ports have been designed for the Modern GUI interfaces; moreover Parallel Ports & DMPs were designed for the old DOS Command line interface.Only solution would be to recompile your Code in Visual Foxpro & then hook it up with the Laser Printer.Ravi.
 
I tried with a Networked Laser printer and it worked fine.Or you can "Pool" Laser printer's port with LPT1. This option is present in laser printer's config GUI.
 
Back