Use TChromium.ExecuteJavaScript. Several demos use the ExecuteJavaScript function in the context menu and they userdp wrote: Tue Sep 05, 2017 8:06 pm hello, I want use the chromium to generate charts,
here's fullfill of charts js libraries free,
now I was thinking, I put a offscreen chromium, load the js libraries then:
1) how to call javascript to passing data directly instead of GET HTTP
browser.MainFrame.ExecuteJavaScript but it's the same.
Take a look at the MiniBrowser or the JSExtension demos for example.
You need to use the OSR mode to take a snapshot.
The OSR mode is more complex than the "normal" mode. Compare the SimpleBrowser and the SimpleOSRBroser and you will see a lot more code.
If this is the first time you use CEF4Delphi, DCEF3 or any other CEF3 based project I would suggest that you use the SimpleBrowser first. Load your customized webpage with the libraries, pass the parameters with ExecuteJavaScript and when you see the right results then move your code to the SimpleOSRBrowser.
The SimpleOSRBrowser uses a TPaintBox32 to paint the results. You should be able to save the bitmap using the TPaintBox32.Buffer.SaveToFile function.