C# Print Driver
-
I want to create a print driver in C# that a user could print to and it would create a file on there computer. Is this possible? Does anyone know of an example that I could refer to? Thanks a lot.
-
Just to clarify, I want a user to be able to print to a printer that is set up to use this print driver and have it's output be a tiff image or whatever format I choose to implement. Would something like this be possible?
-
You can print to file.. :) using the normal windows printer functions. But I don't know if that is what you're looking for. "Every rule in a world of bits and bytes can be bend or eventually be broken"
-
Just to clarify, I want a user to be able to print to a printer that is set up to use this print driver and have it's output be a tiff image or whatever format I choose to implement. Would something like this be possible?
It's possible, but c# was not designed to do such low level work. Besides, I think what you want already exists. Install a new local printer, chose FILE: as the port, when you get to picking the printer driver, install Generic/Generic Text. Then you can output whatever you want. You'll have to output the file format yourself so you better know the exact format of a TIFF file or what ever your going to print. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome