Printing problem on applications that prints directly on LPT1

Asked By 10 points N/A Posted on -
qa-featured

Printing problem on applications that prints directly on LPT1

I have a Visual Basic program that prints directly on LPT1. I use the method “Open LPT1 for output” in my visual basic code to print directly on LPT1. When printing on to a local printer, the program prints, but when printing on Network shared printer, the print doesn’t work. How should I redirect the printer command to the network printer?

SHARE
Best Answer by Windy Miles
Answered By 0 points N/A #81693

Printing problem on applications that prints directly on LPT1

qa-featured
  • Printing problem on applications that prints directly on LPT1
  • If you will go to analyze your set-up it is impossible to solve the problem and to find the solution.  You’re transferring your LPT1 to the LPT1 of a remote machine.
  • Here’s the scenario of your printing procedure, as you commanded inside your program the “Open LPT1 for output as #1” and then commanded the program “Print #1,’Send this message to the printer direct on LPT1”. The program will then redirect the print on LPT1 without using your printer spooler. Printer drivers are bypassed in this method of command. Un-installing your printer will still the program able to send the data on to your printer. But it is directed into your LPT1 which is physically your printer port.
  • To send your data via LPT1 on the shared printer, off course you need to connect first on the shared printer. But, do not connect using your windows browser over the network. Connecting using the browser won’t work. Instead open your command prompt by running the CMD.EXE and on the command prompt type the following command.
  • NET USE LPT1 \MACHINENAMEPRINTERSHAREDNAME
  • Where the MACHINENME is the name of the computer where the shared printer is connected and the PRINTERSHAREDNAME is shared name of the printer you want to use for printing.
Best Answer
Best Answer
Answered By 0 points N/A #81694

Printing problem on applications that prints directly on LPT1

qa-featured

Hello,

  • You can try this links that really could help you solve your problem.
  • You can use the Net Use command from the windows in directing LPT port to the network location. Just connect the printer for accessing through the network. We just name your computer as Computer and the printer as Printer, for this to share the system using the link. Here are the commands used to direct printing process from LPT1 to network.
  • NET USE LPT1: \ComputerPrinter
  • Settings are all temporary and it will be disappear after rebooting of the computer. 
  • For persistence of the setting after rebooting of the computer use the switch of persistent
  • NET USE LPT1: \ComputerPrinter /persistent:yes
  • For removing the persistent switch of delete is used.
  • NET USE LPT1: /delete
  • I hope your issue will be solved. 

Related Questions