

- SLOW PRINTING WINDOWS XP MODE WINDOWS 7 PRO
- SLOW PRINTING WINDOWS XP MODE WINDOWS 7 CODE
- SLOW PRINTING WINDOWS XP MODE WINDOWS 7 PC
We have received the following potential fix from Microsoft Pro support:Īs discussed, let’s try the below listed action plan:
SLOW PRINTING WINDOWS XP MODE WINDOWS 7 PC
What about run the assembly on others PC with others products' printer? Maybe it is caused by the special device/driver like this problem's root cause: When you said it has problem under Win8, have you checked Win7? What about just retrieve out the XPS printer name form the foreach, and then just check that printer? My test account is a domain account and a local system account, both are under the Administrators group. Net 3.5 build, and it runs fine both in Win7 and Win8.
SLOW PRINTING WINDOWS XP MODE WINDOWS 7 CODE
The modified code also can work fine in my Win8 RP 圆4 system with An圜PU, 圆4 and x86 build. PrintCapabilities pc = pq.GetPrintCapabilities() Ĭonsole.WriteLine(queue.Name + " : " + pc.MaxCop圜ount) PrintQueue pq = new PrintQueue(new PrintServer(PrintSystemDesiredAccess.EnumerateServer), queue.Name) MemoryStream ms = queue.GetPrintCapabilitiesAsXml() PrintCapabilities printcap = queue.GetPrintCapabilities() String pServer = "\\\\" + Environment.MachineName įoreach (PrintQueue queue in hostingServer.GetPrintQueues()) That seems strange that I get denied on what would appear to be lessor access request. Note that when I try administerprinter, I get access denied but if I try administerserver, I get the above failed to bind error. I have tried various combinations of using the path to print server or not.and various desiredaccess settings. Win32 error: -2147467231Īt MS.ctor(String deviceName, Int32 maxVersion, Int32 clientVersion)Īt (String deviceName, Int32 clientPrintSchemaVersion)Īt ()Īt (PrinterSettings PrinterSettings)) PrinterCapabilities = PrintQueue.GetPrintCapabilitiesġ2:10:36: Printer.Initialize(: PrintTicket provider failed to bind to printer. PrintQueue = New PrintQueue(New PrintServer(PrintSystemDesiredAccess.EnumerateServer), DisplayName) I am testing this on a virtual machine so VS is not present. The problem Visual Studio solution will be necessary for us to repro and research this problem to find the real and root cause. Maybe you also can find the problem code line, and solve it yourself before you send the simplified projects to us. You can help us to simplify the codes to generate a reproducible Visual Studio solution/project, delete the codes form your projects which not related to this problem, this is also an exclude way. What code you are using to test, can you share it me? If there's an error throw out, did the Visual Studio help you locate to the problem code line? MemoryStream ms = queue.GetPrintCapabilitiesAsXml() Ĭonsole.WriteLine(printcap.MaxCop圜ount) PrintServer hostingServer = new PrintServer(pServer, PrintSystemDesiredAccess.AdministrateServer) įoreach(PrintQueue queue in hostingServer.GetPrintQueues()) I have not get a Server 2012RP, but I have the Win8 圆4 RP, I write the below code, and it works fine in my Win8 圆4 RP System: String pServer = "\\\\" + Environment.MachineName
