Hi
Hi,
Playing around with delphichromiumembedded (from https://github.com/hgourvest/dcef3) and I would like to show a string of HTML, without having to save it to disk first.
I have been using the 'guiclient' demo as a reference and tried the following without success:
FChromium.Browser.MainFrame.LoadString(LHtmlString, 'source://html');
Does anyone know if this is possible (and if so how)?
TIA!
Playing around with delphichromiumembedded (from https://github.com/hgourvest/dcef3) and I would like to show a string of HTML, without having to save it to disk first.
I have been using the 'guiclient' demo as a reference and tried the following without success:
FChromium.Browser.MainFrame.LoadString(LHtmlString, 'source://html');
Does anyone know if this is possible (and if so how)?
TIA!
I use this code that works for me
ReplyDeleteFChromium.Browser.LoadUrl('about:blank');
FChromium.Browser.MainFrame.LoadString(HTMLstring, '');
Agustin Ortu I will have a look at it.
ReplyDeleteDavid Heffernan Is that a question or a statement? Either way, would you have some code to do it?
Christophe E. Ah. I see, blank page first then load the HTML string in - I will give it a crack.
Randy Sill Yep. Did the FChromium.LoadUrl('about:blank'); before hand and it worked a treat. Thanks Christophe E.
ReplyDeleteThe fun part after that was handling the backwards and forwards... :)