WPCubed Product Support

The best way to append a document to an TWPRichText?

Hello 🙂

In my application I need to combine many different TWPRichTexts into one big Document. I get those Documents from the Database (in WP File format), so I can access them as string.

At the moment I load them into a seperate TWPRichText and Append them via fastappendtext to the main document. As I read that this function shouldn't be used I asked myself how to do something like that in another way, but I didn't get any idea 🙁

Shall I just add them via:

wp_MainDocument->AsString = wp_MainDocument->AsString + StringFromDatabase;

I need to keep the formatting of all added paragraphs as the were originally entered.

Hope you understand what I want to do. What be great if anyone could helpt.

Thanks in advance,
Florian Fanderl

#1 ♥ 0
3.9k Views 2 users read 1 min
support

Hi,

In my application I need to combine many different TWPRichTexts into one big Document.

wp_MainDocument->CPPosition := 0xFFFFFF;
wp_MainDocument->SelectionAsString := StringFromDatabase;

Regards,
Julian

#2 ♥ 0

thank you 🙂 never thought it would be that simple 😃

#3 ♥ 0
This category is archived. No new posts are possible.