Click here to Skip to main content
15,446,510 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Is it possible to get the data that is sent to the printer using VB .NET?

What I have tried:

Is there any sample code for this?
Posted
Updated 2-May-21 23:43pm
v2
Comments
Richard MacCutchan 3-May-21 9:44am    
If you mean data from other applications, then the short answer is no. It is possible by writing a Windows device driver filter, but that is an advanced topic which requires a good understanding of the internals of the Windows OS.
nkm00e 3-May-21 21:07pm    
Hi, thank you for the reply. Just to confirm, so it is almost impossible to intercept the data sent to the printer? I have another question, is it possible to get the data that was sent to the printer driver?
Richard MacCutchan 4-May-21 3:03am    
Yes, as I suggested in my comment, by writing a filter driver.
nkm00e 4-May-21 3:06am    
Hi, thank you for your reply :) I will look into it.

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