Hi all,
1. I used "SaveRVFToStream" to save my "RichViewEdit" content into a stream, and Compress Stream to Save the file.
2.Read stream from file and decompress this Stream, and then use "LoadRVFFromStream" it from the stream, but the "LoadRVFFromStream" method is failed.
I uses ZLip.TCompressionStream Method to do compress.
Can you send me a tutorial to help me with this?
Ths
"LoadRVFFromStream" method failed?
-
- Site Admin
- Posts: 17559
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Make sure that you call Stream.Position := 0 before loading and RichViewEdit.Format after.
If it will not help, please save the content of this stream after decompression to a file and send this file to me ( [email protected] )
If it will not help, please save the content of this stream after decompression to a file and send this file to me ( [email protected] )
-
- Site Admin
- Posts: 17559
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
I received your file. It does not contain collections of text and paragraph styles, so it can be loaded only in TRichView having exactly the same collection of styles.
If these collection are saved inside the file, this file can be loaded in any TRichView. Right click TRichViewEdit in Delphi, choose "Settings" in the popup menu, select "Allow adding styles dynamically".
If these collection are saved inside the file, this file can be loaded in any TRichView. Right click TRichViewEdit in Delphi, choose "Settings" in the popup menu, select "Allow adding styles dynamically".