Click here to Skip to main content
15,889,732 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
I would like to create virtual printer in c# & the created printer should be shows in drop down of printer setting tab while printing the file.
Is that possible in c# or .net, if possible please help me on that

Thanks in advance..

What I have tried:

Able to create printer application, but its not showing in Printer dialog while printing a file
Posted
Updated 25-May-17 4:45am

1 solution

Possible? Yes.

Practical? Hell no!

You're looking at writing a printer driver. Though this is possible to do in C#, in order for it to work, you'd be loading the weight of the .NET Framework into the kernel when the code is running. That's not a wise thing to do.

You'd also be rewriting quite a sizable chunk of the Windows Driver Kit code in C#. This is not an undertaking I would want to tackle and I've been writing code for 40 years.

Drivers like this are best written in C/C++, not C#.

You can find the Windows Driver Kit documentation and samples here[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900