Re: Intercepting print dialog
Posted: Fri Oct 26, 2018 7:57 am
As far as I know, there are two ways to disable printing :
- Overwrite the window.print JavaScript function. Add this code :
Code: Select all
TChromium.ExecuteJavascript('window.print=function(){}', 'about:blank', 0);
- Hook the PrintDlg and PrintDlgEx functions in the Windows API. For more details about this, read this post message :
https://www.briskbard.com/forum/viewtop ... 2373#p2373