Example1 : Printer showing port as LPT1
Example2: Printer showing port as \\PcName\PrinterShareName

[URL=http://g.imageshack.us/img510/
Both the above Dot matrix printers are NETWORK Printers ( not physically connected to my PC's LPT port )
For printers showing port as LPT1 (Example 1) I need to change programatically the port to \\PcName\PrinterShareName ( as the port in Example 2 ).
I am trying to copy a text file to the port shown while selecting a printer
If the port value is \\PcName\PrinterShareName print works fine.
If there is no printer attached to the LPT1 port of my PC and the port value of the network printer is LPT1, then nothing will happen while executing the print command. I know that the other alternative is to map LPT1 thru command prompt NET USE LPT1: \\PcName\PrinterShareName, which I don't prefer.
I am looking for a way to handle it thru FWH
I need this LPT port mapping to be done programatically.
I don't know why some printer are showing LPT1 as port and some showing \\PcName\PrinterShareName
Any help.
Regards
Anser