CoreWebView2 exposes methods like ShowPrintUI which I'd like to utilize.
However, it seems that RAD Studio, even in the latest version 11.3 has hpp files from a pretty old build - 1.0.1054.31 from 2021, at least that is shown in the GetIt Package Manager. This has not been updated for a very long time and Embarcadero seems to be very slow in updating this.
It appears that the ShowPrintUI
requires at least 1.0.1518.46 version of the SDK.
Is there a way to add those headers to the current C++ Builder installation, or at least the relevant part for using CoreWebView2.ShowPrintUI()
or CoreWebView2.PrintAsync()
and how specifically?
I already know about the workaround to execute JavaScript like window.print()
which I do not want to use as a solution as it doesn't pop up a new window but shows the user interface inside of the TEdgeBrowser window.
I am guessing that, if newer headers would be available the usage would be as easy as:
EdgeBrowser1->DefaultInterface->ShowPrintUI();
Per support reply by Embarcadero representative, they plan to update headers in the future major release, but I'd like to avoid the wait as I also have to use this in an older version of C++ Builder.