![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
| |
| | #1 (permalink) |
| | RE: PrintTicket difficulties If you convert the error code to hex you get 0x80040154 and this seems to be REGDB_E_CLASSNOTREG. You don't specify the OS or version of WinFX that you are using, but my guess is that you are using the November CTP of the Windows SDK on Windows XP or Server 2003? If I'm correct then your problem is almost certainly that the OS doesn't have PrintTicket support yet, and that the error code is trying to tell you that the driver you are using doesn't have a Print Ticket provider interface. Basically for Print Ticket support to work with a driver then something has to provider a PrintTicket provider COM interface for the WinFX classes to use. For legacy drivers running on Vista driver-writers will have a choice of how to do this. The driver-writer can either implement their own PT Provider interface, or the OS will do it for you. (The new Unidriver for Vista will include PT support in box). What I don't know yet is exactly how the downlevel support for PrintTickets will work (or if that it will be made available downlevel). The error message that you are seeing suggests that the WinFX code cannot find a PT Provider interface. This implies that the driver you are using does not support the PT Provider interface and that the OS version you are using does not support this for the driver. Judy "Fred Vandervelde" wrote: > Hey all, > > I'm not sure whether or not this is the correct newsgroup, but here goes. > > This code causes an error for me: > LocalPrintServer server = new LocalPrintServer(); > > PrintQueue queue = server.DefaultPrintQueue; > > ticket = queue.DefaultPrintTicket; > > I get an error when the code hits the last line. I have Several Printers > set up on the computer, but I consistently get this error regardless of > which one I set as the default. The exception thrown is this: > > PrintQueueException: > > PrintTicket provider failed to bind to printer. Win32 error: -2147221164 > > I can't seem to find anything on this error anywhere. > > Any ideas? > > Thanks, > > Fred. > > > |
My System Specs![]() |
| | #2 (permalink) |
| | Re: PrintTicket difficulties Thanks for clearing that up Judy. I am indeed running the Nov CTP on Windows XP Professional. My next question is - how do I print from a WPF application on Windows XP? Since WPF is available 'downstream' for XP, I had assumed the XPS printing functionaility would be as well. Is this just a case of incomplete functionality in the Nov CTP? I was able to get a rudimentary 'save to XPS' routine working, so I would assume that is the case. I found the printing examples at Feng Yuan's blog: http://blogs.msdn.com/fyuan . It's quite obvious he's talking about Vista, but he doesn't make any mention about the functionality being broken or unavailable on XP. At any rate, this is a CTP, so I can be patient if need be. Thanks, Fred "JudyBooth" <JudyBooth@newsgroup.nospam> wrote in message news C435F65-5784-4BD9-B05E-FD37E22BB173@microsoft.com...> If you convert the error code to hex you get 0x80040154 and this seems to > be > REGDB_E_CLASSNOTREG. > You don't specify the OS or version of WinFX that you are using, but my > guess is that you are using the November CTP of the Windows SDK on Windows > XP > or Server 2003? > > If I'm correct then your problem is almost certainly that the OS doesn't > have PrintTicket support yet, and that the error code is trying to tell > you > that the driver you are using doesn't have a Print Ticket provider > interface. > > Basically for Print Ticket support to work with a driver then something > has > to provider a PrintTicket provider COM interface for the WinFX classes to > use. For legacy drivers running on Vista driver-writers will have a choice > of > how to do this. The driver-writer can either implement their own PT > Provider > interface, or the OS will do it for you. (The new Unidriver for Vista will > include PT support in box). What I don't know yet is exactly how the > downlevel support for PrintTickets will work (or if that it will be made > available downlevel). > > The error message that you are seeing suggests that the WinFX code cannot > find a PT Provider interface. This implies that the driver you are using > does > not support the PT Provider interface and that the OS version you are > using > does not support this for the driver. > > Judy > > "Fred Vandervelde" wrote: > >> Hey all, >> >> I'm not sure whether or not this is the correct newsgroup, but here goes. >> >> This code causes an error for me: >> LocalPrintServer server = new LocalPrintServer(); >> >> PrintQueue queue = server.DefaultPrintQueue; >> >> ticket = queue.DefaultPrintTicket; >> >> I get an error when the code hits the last line. I have Several Printers >> set up on the computer, but I consistently get this error regardless of >> which one I set as the default. The exception thrown is this: >> >> PrintQueueException: >> >> PrintTicket provider failed to bind to printer. Win32 error: -2147221164 >> >> I can't seem to find anything on this error anywhere. >> >> Any ideas? >> >> Thanks, >> >> Fred. >> >> >> |
My System Specs![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| PrintTicket provider failed to bind to printer. Win32 error: The s | .NET General | |||
| Having difficulties | Chillout Room | |||
| UAC difficulties.. i think | System Security | |||
| ICS Difficulties | Vista networking & sharing | |||