My current App is creating an HTML string dynamically and then creating a text file to write the string to. If I do all of these steps while the app is running HTMLUI fails to render the page.
But If I run the app, take the created HTML page out and put it into another application that uses HTMLUI the HTMLUI.Load() renders the page fine.
I''m not sure if its because of the File.IO is creating the text file and then immediately calling it that HTMLUI.Load() fails to render inside the first app, because it can render the very same HTML document if I call it from another application.
And to make matters more bizarre if I have an image or an Href in the HTML it will render fine with no problems the first time.
DJDavis Jebaraj Syncfusion Team April 18, 2005 01:35 PM
We regret for the inconvenience caused. Could you please try handling the LoadError event of the HTMLUI control. This event will be raised when the Load fails and that will provide additional information about the reason for the failure.
ADAdministrator Syncfusion Team April 18, 2005 01:46 PM
I just found out what was causing the rendering problem. In the forms "PreRender" event I''ve declared a custom control. Sometimes the HTMLUI should display this custom control and sometimes is shouldn''t depending on if the HTML code contains any links.
It appears I must include this custom control in the HTML code even if I don''t want to use it, otherwise the HTMLUI fails to render the page. Bit of a hassle but nothing too serious, do you think there might be a fix for this anytime in the near future?
DJDavis Jebaraj Syncfusion Team April 18, 2005 02:13 PM
Thanks for the information. We will surely fix this issue at the earliest. I will try to reproduce this problem and send it to our development team.