主题:asp服务器端打印求助
我已做了一个打印用的带输入量的exe文件,并且在服务器上的“运行”中直接输入:
D:\web\print.exe 需要打印的字符
可以打印出来。
但是我在网页asp脚本中用下面的代码却打印不出来。
dim PrintexePath
dim cmd
PrintexePath="D:\web\printapp.exe"
Set FSO= Server.CreateObject("Scripting.FileSystemObject")
if FSO.FileExists(PrintexePath) then
Set objShell= CreateObject("Wscript.Shell")
cmd= PrintexePath & " " & "string"
objShell.Run cmd,1,false
Set objShell= Nothing
end if
Set FSO= Nothing
不知道是不是从客户端调用服务器端打印机,有什么权限设置?
还是有其他的原因?
请高手指点……