Thanks, much tidier. Just another thing to add on though, it finishes the sub whether error raised or not. On return from the sub, it quits out. How can I add a check as to whether an error was raised, and therefore whether it should quit out?
Jamie
I've managed to create a web based printer chooser, relying on multiple text files, messy but will do just fine (it's not my job to maintain it...)
However, if the user tries to add a printer that isn't available (ie. the computer isn't turned on), I get the error message saying the printer...
I have now got the theory behind HTAs sorted, and think they are the best solution for me, however am I right in thinking that they cannot query a database and for that I must use ASP?
I have many printers to choose from on our site, and so would like to keep them stored in a separate list for...
Thanks, that worked instantly!
Just got to work out which way is best to divide up all the printers, then learn how to implement it..
I'll report back with any HTML problems in the appropriate forum :)
I didn't know if it was them not allowing the ActiveX to run properly, that's the only thing I can think of. I've just re-read my post, it was a rather long-winded way of saying I just want one click to install a printer from a site :)
Can anybody shed light on the ActiveX error?
I've copied EBGreen's code exactly and now saved it as a .htm rather than .asp, but still gives the ActiveX error.
It was causing much confusion in the office, none of us have any such experience, so wondered where the client and server runtimes were. I have allowed "Active content to run in...
It shows the message box, but bottom left it indicates an error still (next to Done):
"ActiveX component can't create object: 'WScript.Network'"
I am running Windows XP, so I have the latest WSH?
That's doing nothing either, although still no errors. How can I call another procedure to print some text just to check that the ASP is working properly on my IIS?
I am calling it simply by using
<%MapPrinter()%>
Apologies if I'm missing something really obvious, I only learnt VBScript last week, I'm now trying to translate to ASP and falling at the first hurdle!
Don't know why it's not there, but I'm getting the same error when it is in. Is it because it is trying to install the printer on the server it is being run on?
Can anybody point me on the direction of the printer being installed to the computer the site is being accessed from?
TIA,
Jamie
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...
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...
I am also looking for the same, to be implemented in a school, allowing teachers to choose which printer to print to, they have access to any. At the moment the Add Printer dialog is confusing for many, a simple few clicks web interface would be much better...
I have seen things saying that...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.