void Form1_Load(object sender, EventArgs e) { //1. notify viewport that the host is ready easeViewport.Ready(); //2. load blank html easeViewport.LoadHtmlString("", "<html><body></body></html>"); }
void Form1_Load(object sender, EventArgs e) { //load sample html text easeViewport.Ready(); string filename = @"..\..\..\HtmlRenderer.Demo\Samples\ClassicSamples\00.Intro.htm"; //read text file //var fileContent = System.IO.File.ReadAllText(filename); //start with about blank //easeViewport.LoadHtml(filename, fileContent); easeViewport.LoadHtml(filename, "<html><body></body></html"); }