The TWebBrowser
component has been replaced by the TEdgeBrowser
. My goal is to customize the text in the header and footer sections of a printed HTML page when the user prints using the TEdgeBrowser
component.
I was able to accomplish this when using the TWebBrowser
component by writing code to temporarily set the Internet Explorer registry keys at the time of printing ("SOFTWARE\Microsoft\Internet Explorer\PageSetup": 'header' and 'footer' keys). However, these same keys don't seem to exist for the Edge browser. The closest I found was the 'PrintHeaderFooter' key, which enables/disables the headers and footers.
Is there a way to modify the header and footer content in my Delphi application when printing using the new TEdgeBrowser
component?