printers

How to programmatically search a printer in Active Directory

﹥>﹥吖頭↗ 提交于 2019-12-01 08:04:38
Attempting to find printers / shares in Active Directory using C#. This is my sample code that works for users however I cannot seen to be able to find a printer using the same concept. (I am new to Active Directory). DirectoryEntry entry = new DirectoryEntry(); entry.Path = "LDAP://xxx.xxx.xx.xx/CN=Printers;DC=domainName, DC=com"; entry.Username = @"domainName.com\Administrator"; entry.Password = "admin"; DirectorySearcher search = new DirectorySearcher(entry); search.Filter = "(objectCategory=printQueue)"; SearchResult result = search.FindOne(); if (result != null) { ResultPropertyCollection

How to programmatically search a printer in Active Directory

纵然是瞬间 提交于 2019-12-01 06:43:29
问题 Attempting to find printers / shares in Active Directory using C#. This is my sample code that works for users however I cannot seen to be able to find a printer using the same concept. (I am new to Active Directory). DirectoryEntry entry = new DirectoryEntry(); entry.Path = "LDAP://xxx.xxx.xx.xx/CN=Printers;DC=domainName, DC=com"; entry.Username = @"domainName.com\Administrator"; entry.Password = "admin"; DirectorySearcher search = new DirectorySearcher(entry); search.Filter = "

Is there anyway to specify a PrintTo printer when spawning a process?

痴心易碎 提交于 2019-11-30 12:42:20
What I Have I am currently writing a program which takes a specified file and the performs some action with it. Currently it opens it, and/or attaches it to an email and mails it to specified addresses. The file can either be of the formats: Excel, Excel Report, Word, or PDF. What I am currently doing is spawning a process with the path of the file and then starting the process; however I also am trying to fix a bug feature that I added which adds the verb 'PrintTo' to the startup information, depending on a specified setting. What I Need The task I am trying to accomplish is that I would like

Is there anyway to specify a PrintTo printer when spawning a process?

你离开我真会死。 提交于 2019-11-29 18:24:07
问题 What I Have I am currently writing a program which takes a specified file and the performs some action with it. Currently it opens it, and/or attaches it to an email and mails it to specified addresses. The file can either be of the formats: Excel, Excel Report, Word, or PDF. What I am currently doing is spawning a process with the path of the file and then starting the process; however I also am trying to fix a bug feature that I added which adds the verb 'PrintTo' to the startup information

Can't add new Redirected Port in Windows 7 after installing RedMon

馋奶兔 提交于 2019-11-29 08:55:15
问题 My operating system is Windows 7 32bit. I installed RedMon1.7 , Ghostscript 8.71 and GSview 4.9 ; installations were successful. I went to Add New Local Printer in Windows Devices and Printers , clicked on Create A New Port , and selected Redirected Port from the Type of Port list. Clicked Next and in the Add New Port window I named RPT1: and clicked OK but it says Specified port cannot be added. Operation could not be completed (error 0x00000001) I tried giving different names to the port,

Bluetooth and WIFI Printing for Android

大憨熊 提交于 2019-11-26 17:10:17
We would need a portable printer (handheld, it is important) that can connect to android phone via bluetooth or wifi. What I know currently: No standard printing SDK available for Android this time There is a non official SDK called iPrint SDK . Have any of you tried it through wifi or bluetooth? Does it work? Printershare also claims to be programmaticly available . It would be ok for me to pay the one time fee $5 for it per phone. It has a lot of supported formats. Have you tried it with any handheld device? I asked them about the list of supported bluetooth printers (since it has a menu