Document has too many paragraphs

Hi,

I searched this forum about this topic, but can’t find a solution to solve the problem.

I got a mail today, when I tried to open it. Following error sent out:

Document has too many paragraphs - it must be split into several documents.

This mail is created by a agent. and it has lots of body fields.

How I can open this document?

Thanks

Subject: RE: Document has too many paragraphs

If you post the agent code, we may be better able to help. I assume your question really is, how do I write the agent so that it doesn’t cause this problem, not, how do I view this one email?

The error message is “too many paragraphs”. You might try to reduce the number of paragraphs, e.g. by creating a less verbose report, or combining on one line things that are now split on multiple lines, or by using line breaks instead of paragraph breaks (boolean argument to AddNewLine method). See ReportGenerator Class - Lotusscript / Example Code.

A call to the Compact method of NotesRichTextItem, before you send, might also help.

Subject: Document has too many paragraphs

I’m afraid you’ll have to write a LS utility to achieve this (using CopyItemToDocument to transfer each RT field individually to another separate doc).

Subject: RE: Document has too many paragraphs

Thank you for your advice. So I need to write a button to use LS to separate the document.

But if I use copyitemtodocument method, how can I separate each RT field, since they have the some name. All of the text is in body field