Hi - Afraid I couldn't identify a more specific forum.
I have an application in which I have to take an existing print queue and change it's driver. I cannot just delete the printer and recreate it, but must actually change the driver in the existing print queue. I would like to use the newer System.Printing
objects in the .NET framework, and indeed there is a PrintDriver object, and indeed a PrintQueue can have its driver set with one such object. The problem is, the PrintDriver class has no parameters in its constructor, nor any way to specify what driver it
represents. Right now, it looks like to only way to get a meaningful PrintDriver instance is to get one from an existing PrintQueue.
In my application, I can only count on knowing the textual name of the printer driver. Using WINAPI calls, I could change the driver, but we are trying to stay in entirely managed code and objects. It seems like the only thing missing is a way to either
enumerate available drivers as PrintDriver objects, or to create one. In particular, I can't count on there being any installed printer with the desired driver as its current driver, but I
can count on the driver whose name I'll have being available on that machine.
This would be for .NET 3.5. As I say, it looks like all the pieces are there - PrintQueue, PrintDriver, but no way to get the driver object
View Complete Post