praveen b p
October 10th, 2001, 06:52 AM
I have a VB executable which simply prints a form when executed. When I run
it from the command line it prints the form to the printer correctly.
My requirement is to shell this EXE from a web page. The web server is the
same machine on which the VB executable resides. I use the WScript object to
shell it, as shown below:
"Dim WshShell
Set WshShell = Server.CreateObject("WScript.Shell")
WshShell.Run "c:\inetpub\scripts\PrintTest.exe"
Set WshShell = Nothing"
The EXE shells, but the print does not take place and I get an error called
"Printer Error". I have checked up Microsoft's article on this and have
changed registry settings so that the printer is available under the SYSTEM
user identity
(http://support.microsoft.com/support/kb/articles/Q184/2/91.asp).
However, I still get the same error.
Incidently, the above does not work even if I shell the EXE through an
intervening DLL, instead of shelling it directly from an ASP page using
Wscript.
My web server is IIS 5.0 running on Windows 2000.
Any help or suggestions will be appreciable..
Regards
Praveen
it from the command line it prints the form to the printer correctly.
My requirement is to shell this EXE from a web page. The web server is the
same machine on which the VB executable resides. I use the WScript object to
shell it, as shown below:
"Dim WshShell
Set WshShell = Server.CreateObject("WScript.Shell")
WshShell.Run "c:\inetpub\scripts\PrintTest.exe"
Set WshShell = Nothing"
The EXE shells, but the print does not take place and I get an error called
"Printer Error". I have checked up Microsoft's article on this and have
changed registry settings so that the printer is available under the SYSTEM
user identity
(http://support.microsoft.com/support/kb/articles/Q184/2/91.asp).
However, I still get the same error.
Incidently, the above does not work even if I shell the EXE through an
intervening DLL, instead of shelling it directly from an ASP page using
Wscript.
My web server is IIS 5.0 running on Windows 2000.
Any help or suggestions will be appreciable..
Regards
Praveen