質問

I need to create a virtual printer that 'shreds'

Basically here is my problem. I have a software program that needs to 'print' a file before it will save it. I want to be able to print to my shredder so that it saves the document, but I don't actually want the document printed. So I need to print to a program that securely deletes the document and shows as a driver in Windows.

How would I go about doing this in C# of VB.Net?

役に立ちましたか?

解決

No need to write code for this just print to nul. This has worked since DOS. Just create a new printer, printing to a local port, and put nul in there for the port name.

http://www.markmmanning.com/blog/2009/01/creating-fake-printer-devnull-for.html

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top