RichTextItem - crash

Hi,

I have a richtext field where I wrote text and I used “ENTER” key at end of the paragraph.

In other document I want to copy the content of richtext and for this I used “AppendRTItem”. But in the new document the richtext is crash at first “ENTER” used by me in text. If I delete from the first richtext all “ENTER” the richtext it’s ok(it’s show correctly - appear all text like in first one).

The richText destination is computed.

Is a problem if I use “ENTER” in text? has anybody this problem until now?

Subject: RE: RichTextItem - crash

As far as I know, there’s no problem appending rich text that contains prargraph breaks.Please think about what people will need to know to help you with this.

What do you mean by “crash”?

What is the relevant code?

Subject: RE: RichTextItem - crash

Why I said “crash” bacause after I copied the richtext in the new one in the document it’s show only the first delimiter of the field and text appear until first ENTER which I put in text, and from editable the richtext field is computed.

Thanks

Subject: RE: RichTextItem - crash

I think that the problem it’s not the “ENTER” from text it’s “hide when” in richtext from where I make “AppendRTItem”.

Has anybody this problem? Is a solution for this?

Thanks

Subject: Re: RichTextItem - not a crash after all

I think the problem is the “hide when”. Each paragraph of rich text has its own “hide when” properties.

If it will work for you, you can remove the hide attributes by just copying the text from the item (using GetFormattedText method) and add it to the destination using AppendText and AddNewLine. However, this would also remove all formatting, graphics, etc.

Otherwise, you can use DXL export to convert the document to XML, then manipulate the XML to remove the formatting. Or, the Midas rich text LSX from www.geniisoft.com will do this for you.

By the way, the word “crash” does not mean anything like the problem you are having.

Subject: To clarify

Our Midas Rich Text LSX that Andre mentions will let you remove or modify any hide-when formulas. It will also let you copy the rich text item (your original goal) with or without the hide-when formulas.