I am trying to figure out if it is possible to create a custom print port in .NET.
Functionality I am trying to achieve is to intercept data generated by printer driver and send it to a remote server instead of device.
I am trying to figure out if it is possible to create a custom
Share
Not really. Either creating a virtual port driver or a network redirector requires native code. However…
You could capture the data by installing a network print port and implementing the server side in .NET. For example, LPR would require you to create a TCP socket server, and that’s completely feasible to do in C#.
I don’t know of any existing C# implementation, but you could learn a lot from the source code of p910nd.