Sunday, October 25, 2015

Meghdoot software printing through USB


In the Post offices where newly supplied windows 8.1 pc, there is no LPT port and only usb port was been there. DOS based applications like FoxPro doesn't detect an USB printer.So do the following for MM software printing through USB.
Note:Point of sale submit account could not be printed, as its been configured LPT port by default
.
One way of directing output to USB is by using net use at command line,We will use a little trick to work out.
  1. We fist share our printer with a share name within 8 digit name.
  2. Because DOS didn't support more than 8 characters.
  3. Then we will use above command.
  4. But we need to ensure that we will use text print only.
Now follow these instructions
  1. Share your USB printer and give its name at printer share name
  2. Open the printer properties, select ADVANCE tab select Print Processor
  3. Select TEXT and save the change.

Now use net use command


NET USE LPT1 \\computer name\printer share name/persistent:yes

At the command prompt type DIR >PRN this must give you print from USB printer,then try printing from your application.

Create a batch file of above command and put it on startup.

Procedure to create a batch file:

Just copy the net use command in notepad and save it. Then change the extension txt  as bat