gumbald
Technical User
- Apr 6, 2006
- 16
I am trying to create a web based interface in order that users can choose a printer and it can be installed. This is to be implemented in a school with many, many printers. However, I have the function:
<script language="VBScript" type="text/vbscript">
<!--'
Sub MapPrinter
Dim netPrinter, UNCpath
UNCpath = "\\casper\HPLaserJet4"
Set netPrinter = CreateObject("WScript.Network")
netPrinter.AddWindowsPrinterConnection UNCpath
'-->
</script>
This produces the following when the page is accessed:
Microsoft VBScript runtime error '800a000d'
Type mismatch: 'MapPrinter'
/Printers/index.asp, line 25
Any thoughts?
Jamie
<script language="VBScript" type="text/vbscript">
<!--'
Sub MapPrinter
Dim netPrinter, UNCpath
UNCpath = "\\casper\HPLaserJet4"
Set netPrinter = CreateObject("WScript.Network")
netPrinter.AddWindowsPrinterConnection UNCpath
'-->
</script>
This produces the following when the page is accessed:
Microsoft VBScript runtime error '800a000d'
Type mismatch: 'MapPrinter'
/Printers/index.asp, line 25
Any thoughts?
Jamie