#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    3
    Rep Power
    0

    Printing to a network printer


    Has anyone any information on how to access printers that are installed on another machine on the network.

    I've been using the PrinterSettings class but that only shows printers that are locally installed (and is no use to me whatsoever).
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2003
    Location
    Windsor, Canada
    Posts
    3
    Rep Power
    0

    Unhappy


    Even better if anyone has tips on how to print to a network printer in another domain? I have the web-server on one domain and printers on another, and need to set up a couple of web-based apps that can print...
    Any help would be much appreciated!
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    3
    Rep Power
    0
    I've now found a way for anyone who's interested, if you can access the network printer you can alter the machine.config to impersonate your user id (see the <impersonate> tag).

    This will then allow your ASP.NET app to see all the printers that you as a user can see (throught the PrinterSettings.InstalledPrinters property).
  6. #4
  7. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    3
    Rep Power
    0
    Sorry, that should be <identity> tag.

IMN logo majestic logo threadwatch logo seochat tools logo