F
Frank Rizzo
I basically need a list of printers that's returned by the Find Printers
dialog ( http://www.sqleffects.com/mystuff/findPrinters.png ). I've
tried the path of
DirectoryEntry entry = new DirectoryEntry(strPath);
DirectorySearcher mySearcher = new DirectorySearcher(entry);
mySearcher.Filter = "(objectCategory=printer)"
foreach(SearchResult result in mySearcher.FindAll())
{
strName = result.GetDirectoryEntry().Name;
}
but nothing was returned.
I am wondering what mechanism the Find Printers dialog is using? Is it
hitting up the active directory? How does it find all the printers?
Thanks.
dialog ( http://www.sqleffects.com/mystuff/findPrinters.png ). I've
tried the path of
DirectoryEntry entry = new DirectoryEntry(strPath);
DirectorySearcher mySearcher = new DirectorySearcher(entry);
mySearcher.Filter = "(objectCategory=printer)"
foreach(SearchResult result in mySearcher.FindAll())
{
strName = result.GetDirectoryEntry().Name;
}
but nothing was returned.
I am wondering what mechanism the Find Printers dialog is using? Is it
hitting up the active directory? How does it find all the printers?
Thanks.