I'm using the code bellow to insert a paragraph at the top of a
document after loading an external file. The problem is that the
text always appears at the end and not at the top of the document
WPRichText1.Clear;
WPRichText1.CheckHasBody;
WPRichText1.DefaultIOFormat := 'HTML';
WPRichText1.TextLoadFormat := 'HTML';
WPRichText1.TextSaveFormat := 'HTML';
WPRichText1.LoadFromFile( 'C:\test.html');
WPRichText1.CPPosition :=0;
par := WPRichText1.InsertPar;
par.SetText('TO:');