I'm looking to create a virtual printer that passes data to my .NET application. I want to then create an installer that installs both the printer and the .NET application. It would we really nice to be able to write it all in C#, but I have a feeling that this will require a printer driver to be written is unmanaged code. Does anyone know of a fairly clean tutorial or example of how to do this?
Active4 months ago
Virtual printer free download - Virtual PDF Printer, Virtual Image Printer 2000, Polestar Virtual Printer, and many more programs. CNET Reviews. Check out this Virtual Printer Driver for. Virtual image printer free download - Virtual Image Printer 2000, ActMask Image Virtual Printer SDK, Zan Image Printer, and many more programs. CNET Reviews. NED Image Printer Driver. CNET Labs performs this test on all printers except snapshot printers. Our test document is a 10-page, text-only, 62Kb Microsoft Word DOC file that employs a variety of font sizes and. Virtual ImagePrinter is based on the Microsoft universal printer driver. ImagePrinter can print to file any printable document in your Windows system to the one or many BMP, PNG, JPG, TIFF or PDF files.
ctrlalt313373ctrlalt313373
1,92666 gold badges3030 silver badges3838 bronze badges
closed as off-topic by Cody Gray♦Feb 18 at 14:06
This question appears to be off-topic. The users who voted to close gave this specific reason: https://sitepanama328.weebly.com/download-hp-deskjet-3940-software-free.html.
8 Answers
Visit http://www.printerplusplus.com. It is open source .NET virtual printer. It gives you an installer and a .NET class for writing code to process your 'printer data'.
Peter AngPeter Ang
Tiff Image Printer Driver
Did exactly what you are asking using the Github project: Microsoft/Windows-driver-samples/print/XPSDrvSmpl
Installer: http://wixtoolset.org/
Application: Listen to internal port
Flow: Install printer and application from a single installer. User prints something with your driver while the application listens to the internal port. When data is sent the application picks it up. This is for XPS, can be converted to PDF, but the flow is similar no matter what you are printing. If you need anything else check out Microsoft/Windows-driver-samples/print/ on GitHub or other sources specific to your needs. Hp dc5100 graphics driver windows 7.
Update:
A lot of questions about how to get the driver working so here is a quick example:
Start by downloading Windows Driver Kit (WDK) if you do not have it installed already. When installing choose to add the extension for Visual Studio as well in the final step. In your Visual Studio 2017 Install you need to have
Desktop development with C++ to have the right SDKs. If you don't have it see the anser below on how to add it.
Then download the
.zip file for Windows-driver-samples master:
Navigate to the folder
<UnzipFolder>printXPSDrvSmpl and open XPSDrvSmpl.sln in Visual Studio.
Then follow Microsofts own guide on GitHub. As you can see it is for Visual Studio 2015 but I think it is the same for 2017 (not tested yet):
To build a driver solution using Windows Driver Kit (WDK) 10 and Visual Studio 2015, perform the following steps.
At this point, Visual Studio 2015 will be able to build a driver package and output the files to disk. In order to configure driver signing and deployment, see Developing, Testing, and Deploying Drivers.
OgglasOgglas
19.1k1111 gold badges119119 silver badges157157 bronze badges
I think you will have to do a lot of WinAPI wrapping. Start researching on Windows Driver Development Kit to find the things you have to do.
I also found this commercial Printer Driver Resource Toolkit for .NET..
CMSCMS
628k166166 gold badges861861 silver badges819819 bronze badges
You could simply have your app expose itself like an LPD type printer or monitor port 9100. You could then install any print driver you like, and point it a your app.
Douglas AndersonDouglas Anderson
3,49677 gold badges3434 silver badges4444 bronze badges
Was looking for an answer for similar question, and found this link through Wikipedia - http://www.colorpilot.com/emfprinterpilot.html (allows to create Virtual Printers in different languages)
dolzenkodolzenko
Virtual Image Printer Driver
5,06944 gold badges3232 silver badges2626 bronze badges
Why not consider using an alternative approach. Like using an intermediate ready made printing program, such as those freely available Print-to-PDF application. Then all you need is to decode PDF using some 3rd party library (which has free and opensource variance too) instead of cracking your head to reinvent the wheel. There are other Print-to-XXX application which you could also consider depending on the format you see fit.
faultyfaulty
4,7141111 gold badges3636 silver badges6060 bronze badges
I don't thing interpreting PDF approach is any good either. I don't know why you want to do what you want to do. Maybe you're trying to write a PDF printer of your own.
I think you should really give the Windows Driver Development thing a look. If you want to develop a printer driver, I think you'll have to do it in C++.
Good Luck.
Cyril GuptaCyril Gupta
Virtual Image Printer Driver Cnet Pro200wl
9,8291111 gold badges5757 silver badges7979 bronze badges
If I remember correctly Microsoft does not support .NET within printer driver development. I have yet to come across a pure .NET printer driver. You will be a very brave man to do so! The website 'Printer Driver Resource Toolkit' does not say that the driver has been written in .NET
Image Printer Driver Freeware
PDKPDK
Not the answer you're looking for? Browse other questions tagged .netvirtualprinting or ask your own question.Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |