Copy RichView content to another RichView - Table style problem
Posted: Tue May 27, 2025 1:47 pm
I'm trying to copy the content of one richview to another one using this code:
However, the tables look different in the original (source_richview.jpg) compared to the new RichView (target_richview.jpg). What am I missing? How do I need to transfer the table styles?
Code: Select all
TMemoryStream *stream = new TMemoryStream();
source->SaveRTFToStream(stream, false);
stream->Position = 0;
target->LoadRTFFromStream(stream);
target->AddNL("", 0, 0, RVEMPTYTAG);
target->Format();
delete stream;