Hi,
I have been using the ProfDHTMLEdit component for a while as a html text editor and it has been fine.
I am now creating a simple system which imports emails from outlook into an SQL database, which I have done sucessfully. I wish to use the ProfDHTMLEdit component to display the html body of the email from the database in my main application.
This is a simple viewer, it has a grid (connected to a TQuery) down the left and displays the email information on the right.
OnCellChanged of the grid my program gets the HTML from the query and puts it into the ProfDHTMLEdit component like this :-
htmEdit.Source := quEmailsEmailBody.Value;
(htmEdit being a TProfDHTMLEdit and quEmails being a TQuery)
My problem is that the TProfDHTMLEdit never seems to work when I first start up the form. It works if I click on the grid after the form has loaded, but never the first time. I have tried doing the above line OnCreate and OnShow of the form but it does not seem to work.
Any suggestions?
Steven