trichview.com

trichview.support




Re: problems in DBRichViewEdit and the first line


Return to index


Author

Message

Jamie

Posted: 12/03/2002 22:32:42


Well, I'm having trouble with that method too... What I really want to do is

load a standard "Header" that is stored in a database, then insert some

lines of text, maybe a table, and then a footer, also stored in a database

field... When I use LoadRTF, and then do an Insert Text, the text is

inserted before the header...??? instead of after like I would think...

Here's my code again


  SettingsForm.Headerrve.SaveRTF('C:\Header.rtf',False);

  SettingsForm.Footerrve.SaveRTF('C:\Footer.rtf',False);


  EMailForm.rve.Clear;

  EMailForm.rve.InsertTextFromFileED('C:\Header.rtf');

  EMailForm.rve.Format;


  EMailForm.rve.AddNL('',0,0);

  EMailForm.rve.AddNL('',0,0);

  EMailForm.rve.AddNL(DM.OfferFaxQuery.FieldByName('Title').AsString,0,1);

  EMailForm.rve.Format;



Can you point me in the right direction? thanks!


Jamie





Powered by ABC Amber Outlook Express Converter