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.
- We fist share our printer with a share name within 8 digit name.
- Because DOS didn't support more than 8 characters.
- Then we will use above command.
- But we need to ensure that we will use text print only.
Now follow these instructions
- Share your USB printer and give its name at printer share name
- Open the printer properties, select ADVANCE tab select Print Processor
- 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