1. With GDI API
2.
by XPS API
GDI can Hook API interception then asked when the data,
But the way of XPS (Win10 App, Edge browser, etc.) are to print with XPS API,,
Understand it seems once found are COM interfaces...
As a result, I want the machine to print the time does not affect the normal print, and then to print the contents of which have been in the form of a plain text output to a file,
So do not know to have done this for some thoughts or opinions,
Ps. Hook the COM interface didn't do it I don't know in this situation can't use.. Still need to drive?
CodePudding user response:
Try to Print Monitorshttps://technet.microsoft.com/en-us/library/cc976778.aspx
http://www.codeforge.cn/article/311966
CodePudding user response:
A simple way, you open the XPS printer "printer properties", then in the "port", change the port to the file, then print, will pop up a dialog that allows you to enter the path, you have to do is to save a file, the content of the document is printed,CodePudding user response:
If is programming, want to be a virtual printer, you can refer to the WDK installation, there is a SRC \ print \ msplot is example, in this directory compiled, change it inside DrvTextOut routines, you can get all the printed text,