We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Using File.IO not rendering

Thread ID:

Created:

Updated:

Platform:

Replies:

27777 Apr 18,2005 06:15 PM UTC Apr 18,2005 07:13 PM UTC Windows Forms 3
loading
Tags: HTMLUIControl
Administrator [Syncfusion]
Asked On April 18, 2005 06:15 PM UTC

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.

Davis Jebaraj [Syncfusion]
Replied On April 18, 2005 06:35 PM UTC

Hi Ben, 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. Thanks, Davis

Administrator [Syncfusion]
Replied On April 18, 2005 06:46 PM UTC

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?

Davis Jebaraj [Syncfusion]
Replied On April 18, 2005 07:13 PM UTC

Hi Ben, 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. Thanks, Davis

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;