trichview.support
URGENT: data loss in SaveRTFToStream |
Author |
Message |
Andrew Chichlowski |
Posted: 06/18/2004 9:23:45 Dear Sergey, Dear colleagues, Please help me to solve two problems with SaveRTFToStream. PROBLEM #1: If the following two lines of text: http://hyperlink1 abc are selected, then written by SaveRTFToStream and then loaded back, the carriage return is lost between "hyperlink1" and "abc", i.e. these two items are displayed on the same line. PROBLEM #2: If the following two lines of text: http://hyperlink1 http://hyperlink2 are selected, then written by SaveRTFToStream and then loaded back, the link "hyperlink2" disappears. HOW TO REPRODUCE: 1. Create new application 2. Put new TRichViewEdit on the form 3. Put new TButton on the form 3. Add event handler: void __fastcall TForm1::Button1Click(TObject *Sender) { RichViewEdit1->CopyRTF(); RichViewEdit1->Paste(); } 4. Compile and start program. 5. Enter sample text shown above. 6. Click the button. The natural expectation is that sample text should not change. But the text is actually changing (and therefore gets destroyed). CONSEQUENCES OF THE BUG: For me (and I suspect for others) it becomes difficult to convince the Customers that they should use my program, because they experience data loss when copying/pasting data to MSWord or when they export data to .rtf file. OTHER IMPORTANT INFORMATION: Note that SaveRVFToStream works fine. Doing CopyRVF/Paste DOES NOT change text inside of TRichViewEdit. I hope that Sergey or somebody else would be able to help as soon as possible. Best regards, Andrew Chichlowski. |
Powered by ABC Amber Outlook Express Converter