Modify RTF, substitute complexer placeholder
Posted: Mon Aug 08, 2022 6:46 am
Hello,
I'am try the following and need a little help or a pointer to a good sample. I have rtf files containing simpleplaceholders ##replace## currently I have copied some code from one of the mailer demos to recursivly traverse through RVData simple text substitution works that way.
But now for example I want to Insert a enumeration like this:
Sometext before
This is the list of all persons in the meeting ##replace## this afternoon.
Sometext after
After My RTF Text should look like
Sometext before
This is the list of all persons in the meeting
Sometext after
Enumerating the items gives me a single "TRVTextItemInfo" for the line with ##replace##.
So I think I have to split the existing TRVTextItemInfo into the parts before and after ##replace## I'am right?
And insert the enumeration between?
The enumeration should inherit the same textstyling as the original text. (that means at least fontname, color, fontsize, style)
I'am try the following and need a little help or a pointer to a good sample. I have rtf files containing simpleplaceholders ##replace## currently I have copied some code from one of the mailer demos to recursivly traverse through RVData simple text substitution works that way.
But now for example I want to Insert a enumeration like this:
- Person 1
- Person 2
- Person 3
Sometext before
This is the list of all persons in the meeting ##replace## this afternoon.
Sometext after
After My RTF Text should look like
Sometext before
This is the list of all persons in the meeting
- Person 1
- Person 2
- Person 3
Sometext after
Enumerating the items gives me a single "TRVTextItemInfo" for the line with ##replace##.
So I think I have to split the existing TRVTextItemInfo into the parts before and after ##replace## I'am right?
And insert the enumeration between?
The enumeration should inherit the same textstyling as the original text. (that means at least fontname, color, fontsize, style)