trichview.support
Re: saveHTMLtostream question... |
Author |
Message |
Michael |
Posted: 07/27/2004 9:49:43 I use SaveHTMLToStreamEx but it must be the same, I do this and it is wortking for me, make it a try! try StrStream := TStringStream.create(rtf); RichView.Clear; RichView.LoadRTFFromStream(StrStream); StrStream.position := 0; RichView.SaveHTMLToStreamEx( StrStream, TMP_DIR, title,prefix,'',Externalcss,'',[]); result := StrStream.DataString; finally StrStream.Free; end; Regards, Michael Bryan Tabuteau a ecrit: > Hi, I'm trying to use the saveHTMLToStream function to get the content of > a TRichViewEdit out in HTML format as a string, so I can insert this into > a database. I have tried using a TMemoryStream and a TStringStream to do > this, but have been having no luck. I tried using the saveHTML function, > and it generates a file fine, but just gives me nothing when I try and use > the stream function. Does anyone have an example of this function being > used? The function returns true, but the stream appears to be empty. .size > of the stream returns 0 and I am setting .position to 0 before I do anything > with it. I am a registered user, using delphi 6. Any ideas or examples > using saveHTMLtostream would be appreciated... |
Powered by ABC Amber Outlook Express Converter