Writing a printer driver that works with .NET Application

Is it possible to write a print driver that will work together with a .net application

my .Net application uploads documents to a print server and prints a document

basically i want any documents printed to that printer to be uploaded to a server,so in a way it isnt a printer its more of an application but since i want the jobs to look like they are being printed i want the driver to be a printer driver

and the "application" to look like a virtual printer.

in a way all i need to do is pass the path of the job to the upload.net application which does the uploading for me

is that possible?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Yes, that is possible. Net application would work with any installed in the system printer driver. Good examles are PDF "printer" and Microsoft XPS Document Writer which simulates printer also. And that takes to write a driver according to MS Windows printer driver specs.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
samelaminAuthor Commented:
ok but because i am quite new at this, do you know any good samples i can work with

i need to pass in 4 variables to the .net application. (one is the path of the document) and the other 3 are choices the user gets

any idea if that is also possible?
I am afraid that for a person being quite new at this writing by himself a printer driver for MS Windows is virtually impossible unless he enjoys no schedule and/or timeline. Well, there are some "frameworks"... But the authority is MS and some samples are available in Windows Driver SDK.

To get the idea you migh want to look at links:



samelaminAuthor Commented:
Well I am new to the driver world but i am quite experinced in C Programming so i am quite sure i can pick it up, but yes I am under no pressure and given creative freedom to take as much time as i want.
My superiors know that i am quite new to this and are very understanding which makes me really lucky
samelaminAuthor Commented:
Ok I think i should rephrase my question

Can i write a print driver that creates a PDF document and uploads that document to a server?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Development

From novice to tech pro — start learning today.