+ Post New Thread
Results 1 to 10 of 10
Web Development Thread, web page to map printers in Coding and Web Development; This is the code ive got to map a printer through a web page. . . <html> <head> <title>Printers</title> </head> ...
  1. #1

    Join Date
    May 2006
    Location
    manchester
    Posts
    6
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    web page to map printers

    This is the code ive got to map a printer through a web page. . .

    <html>
    <head>
    <title>Printers</title>
    </head>
    <body>


    <script language="vbscript">
    Function AddPrinter
    dim oNet
    Set oNet = CreateObject("Wscript.Network")
    oNet.AddWindowsPrinterConnection "\\serverName\Roc-ITOffice-HPColour3500"
    Set oNet = Nothing
    End Function
    </script>
    Roc-ITOffice-HPColour3500


    </body>
    </html>

    It will work fine on my PC but other users just get the "error on page" message when clicking on the link.
    The page is only held on a shared drive on my PC at the moment.
    Is this something to do with it or have i missed something else out?

    Thanks.

  2. #2

    TechMonkey's Avatar
    Join Date
    Dec 2005
    Location
    South East
    Posts
    3,282
    Thank Post
    225
    Thanked 403 Times in 300 Posts
    Rep Power
    161

    Re: web page to map printers

    Could it be they don't have permission to add a printer on their station?

  3. #3

    Join Date
    May 2006
    Location
    manchester
    Posts
    6
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: web page to map printers

    nice idea, but the users have permission as im testing it in the IT dept.

  4. #4

    Join Date
    May 2006
    Posts
    66
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: web page to map printers

    Could it be that they dont have the stuff to use vbscript locally?
    Maybe you have visual studio installed and they dont or something?

  5. #5

    Join Date
    May 2006
    Location
    manchester
    Posts
    6
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: web page to map printers

    im going to try hosting it on the intranet server rather than running it off my machine locally.

  6. #6
    ChrisH's Avatar
    Join Date
    Jun 2005
    Location
    East Lancs
    Posts
    4,996
    Thank Post
    120
    Thanked 280 Times in 258 Posts
    Rep Power
    106

    Re: web page to map printers

    If you are using 2003 as a print server then just use the inbuilt IPP website which alows you to view queues and add printers.

  7. #7

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,590
    Thank Post
    109
    Thanked 762 Times in 593 Posts
    Rep Power
    180

    Re: web page to map printers

    @ChrisH: IIRC 2000 does that too.

  8. #8
    ChrisH's Avatar
    Join Date
    Jun 2005
    Location
    East Lancs
    Posts
    4,996
    Thank Post
    120
    Thanked 280 Times in 258 Posts
    Rep Power
    106

    Re: web page to map printers

    Quote Originally Posted by Ric_
    @ChrisH: IIRC 2000 does that too.
    Not your 2000 server though j/k

  9. #9

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,590
    Thank Post
    109
    Thanked 762 Times in 593 Posts
    Rep Power
    180

    Re: web page to map printers

    Quote Originally Posted by ChrisH
    Quote Originally Posted by Ric_
    @ChrisH: IIRC 2000 does that too.
    Not your 2000 server though j/k
    Does for 40 minutes at a time (or a day without a backup tape in!)

  10. #10

    Join Date
    May 2006
    Location
    Leicestershire
    Posts
    345
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Re: web page to map printers

    well like ric and chris said, windows already has this built in, but if you want to run these scripts, im sure u already know this, but u have to run them through IIS... also paged saved as ASP, is yr machine part of the domain aswell... so that the access right apply....

    u dont have to have VB installed on the local machine, u just need IIS running where the files are located and the server will process the page

SHARE:
+ Post New Thread

Similar Threads

  1. page faults
    By mudcow007 in forum Windows
    Replies: 3
    Last Post: 24th August 2007, 08:09 AM
  2. What do you have as your home page...
    By _Bat_ in forum General Chat
    Replies: 23
    Last Post: 10th January 2007, 10:34 AM
  3. Cost per page
    By lordjimbob in forum Hardware
    Replies: 8
    Last Post: 11th May 2006, 09:19 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •