Search found 4 matches

by mwsta
Wed May 28, 2025 12:04 am
Forum: Support
Topic: Copy RichView content to another RichView - Table style problem
Replies: 2
Views: 2370

Re: Copy RichView content to another RichView - Table style problem

Related to the problem above is the following: I also want to copy the content of a TRichView into a TSRichView->RichViewEdit, but it seems the styles are not copied. I tried to assign them manually using: ReportSRichViewEdit->ExternalRVStyle=my_rvstyle; where my_rvstyle is a pointer to a TRVStyle ...
by mwsta
Tue May 27, 2025 1:47 pm
Forum: Support
Topic: Copy RichView content to another RichView - Table style problem
Replies: 2
Views: 2370

Copy RichView content to another RichView - Table style problem

I'm trying to copy the content of one richview to another one using this code:
TMemoryStream *stream = new TMemoryStream();
source->SaveRTFToStream(stream, false);
stream->Position = 0;
target->LoadRTFFromStream(stream);
target->AddNL("", 0, 0, RVEMPTYTAG);
target->Format();
delete stream;
However ...
by mwsta
Fri Apr 04, 2025 10:02 am
Forum: Support
Topic: Bullet point list
Replies: 2
Views: 20053

Re: Bullet point list

Thank you Sergey! Your response solved the problem. I had not understood that the fith paramter of SetListMarkerInfo() refers to the paragraph style (I copied it from code I found in the web). With this modification it now works (yes, the wrong paragraph style was used):

ReportRichView ...
by mwsta
Thu Apr 03, 2025 11:55 am
Forum: Support
Topic: Bullet point list
Replies: 2
Views: 20053

Bullet point list

I'm trying to make a bullet point list in C++Builder using this:

ReportRichView->RichViewEdit->AddNL("My list:", RV_TEXT, RV_TEXT);
ReportRichView->RichViewEdit->SetListMarkerInfo(-1, RV_BULLET_LIST, 0, 1, 1, false);
ReportRichView->RichViewEdit->AddNL("text", RV_LIST_ITEM_TEXT, -1 ...