I can't save a RichView into a Field
Posted: Fri Nov 14, 2008 9:09 pm
Hi.
I have a batch importing from HTML mails, using a RVHtmlImporter and a RichView.
I save every imported file using a stored procedure :
But when I try to view this html mails, in a TDBRichEdit, I don't get the message, I get his hexadecimal content. Someting like :
Thank you.
I have a batch importing from HTML mails, using a RVHtmlImporter and a RichView.
I save every imported file using a stored procedure :
Code: Select all
ImportMessageToRichView;
spEmail.Prepare;
spEmail.ParamByName('FROM').AsString := Msg.From.Address;
spEmail.ParamByName('FOR').AsString := Msg.Recipients.EMailAddresses;
spEmail.ParamByName('DATE').AsDateTime := Msg.Date;
spEmail.ParamByName('ABOUT').AsString := Msg.Subject;
Stream := TMemoryStream.create;
try
RichView1.SaveRVFToStream(Stream, False);
Stream.Seek(0, soFromBeginning);
spEmail.ParamByName('MESSAGE').LoadFromStream(Stream);
finally
Stream.Free;
end;
spEmail.ExecProc;
¿ What am I doing wrong ?-8 1 3
-9 0 0 0 0 0 7
1 1 0 0 0 0
From:
0 1 -1 1 0 0
Tropical News [mailto:information@imc.tropical.com]
1 1 0 0 0 0
Sended:
0 1 -1 1 0 0
lunes, 03 de noviembre de 2008 16:12
1 1 0 0 0 0
For:
0 1 -1 1 0 0
pere_llop@hotmail.com
1 1 0 0 0 0
About:
0 1 -1 1 0 0
Specia Packl 5 + 1
-60 3 1 0 2 0
1
4
Thank you.