M
Maileen
Hi,
I have 2 questions :
1. - I want to print from my ASP page directly to my network printer. For
this i
use the following code, but everytime, my document to print is sent to local
and physical port LPT1 not to network printer
'---- to print report on network printer ---
' path = "\\domain_name\Printer_name"
Set objFS = CreateObject("Scripting.FileSystemObject")
Set objWSHNet = CreateObject("WScript.Network")
objWSHNet.AddPrinterConnection "LPT1:", path, False,login, pwd
else
objWSHNet.AddPrinterConnection "LPT1:", path, False
end if
Set objPrinter = objFS.CreateTextFile("LPT1:", True)
....
objPrinter.Write("simple printing test")
objPrinter.Close
'---------------------------------------------------
2. - i would like to get dynamically the printer name as also its path...how
can i do this ?
thanks in advance,
Maileen.
I have 2 questions :
1. - I want to print from my ASP page directly to my network printer. For
this i
use the following code, but everytime, my document to print is sent to local
and physical port LPT1 not to network printer
'---- to print report on network printer ---
' path = "\\domain_name\Printer_name"
Set objFS = CreateObject("Scripting.FileSystemObject")
Set objWSHNet = CreateObject("WScript.Network")
objWSHNet.AddPrinterConnection "LPT1:", path, False,login, pwd
else
objWSHNet.AddPrinterConnection "LPT1:", path, False
end if
Set objPrinter = objFS.CreateTextFile("LPT1:", True)
....
objPrinter.Write("simple printing test")
objPrinter.Close
'---------------------------------------------------
2. - i would like to get dynamically the printer name as also its path...how
can i do this ?
thanks in advance,
Maileen.