All Printers in web server are listed out

From: peter (pey9076@hotmail.com)
Date: 06/21/02


From: "peter" <pey9076@hotmail.com>
Date: Fri, 21 Jun 2002 19:02:35 +0800


Hi,all

There are some local printers and network shared printers installed in my
web server.

In the *.aspx, I could just get the local printers not the network shared
printers. Why?
The codes in VB.net are as follows :

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
            Dim pkInstalledPrinters As String

            Dim colPrinterList As New Collection()

            For Each pkInstalledPrinters In
PrinterSettings.InstalledPrinters
                colPrinterList.Add(pkInstalledPrinters)
            Next

    End Sub

Any help, tips, links are very appreciated !

You'd better give me some source codes .

Thanks in advance.

Peter
pey9076@hotmail.com


Quantcast