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!

Comments

  1. I use this code that works for me

    FChromium.Browser.LoadUrl('about:blank');
    FChromium.Browser.MainFrame.LoadString(HTMLstring, '');

    ReplyDelete
  2. Agustin Ortu I will have a look at it.
    David 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.

    ReplyDelete
  3. Randy Sill Yep. Did the FChromium.LoadUrl('about:blank'); before hand and it worked a treat. Thanks Christophe E.

    The fun part after that was handling the backwards and forwards... :)

    ReplyDelete

Post a Comment