Skip to main content
    Country/region select      Terms of use
     Home      Products      Services & solutions      Support & downloads      My account     

developerWorks  >  Lotus  >  Forums & community  >  Best Practice Makes Perfect

Best Practice Makes Perfect

A collaboration with Domino developers about how to do it and how to get it right in Domino

In connection with my posting of the ReportGenerator class on, which I blogged about a couple weeks back...

I recently found out that the limit on the amount of rich text in a paragraph has been raised substantially. In my testing, I was able to fit in over 400,000 characters of ASCII text with no formatting, before a paragraph break was inserted for me at a spot I didn't choose. I'm not sure in what version this change was made, but it is in 7.0.

Effectively, it means that you can increase the PARLIMIT constant in the ReportGenerator to something much larger. You should use a value that takes into account whether you expect to use a lot of formatting (which goes against your byte limit) and whether you plan to use mostly ASCII text, which is one byte per character, or, say, Chinese, which requires three or four bytes per character. Allow a safety margin.

As far as I know, the total number of paragraphs has not been increased, and there's some practical limit to the overall amount of rich text you can have, which is less than the 2GB theoretical limit.

If you want to do some testing of your own, be warned that in some versions, opening a document with lots and lots of paragraphs may cause a crash rather than the more subtle "out of memory" or "too many paragraphs" error.

By the way, the error "too many paragraphs" doesn't really mean too many paragraphs. It's more complex than that, because you can have more pagagraphs if you have less of something else -- tables, formatting, I don't know. It's like when Mom complains that there's "too much noise" when what she really means is there's too much to do, she has a headache, the kitchen sink drain is leaking, and considering all that, there's too much noise.

Andre Guirard | 10 July 2007 07:59:03 AM ET | Plymouth, MN, USA | Comments (1)

Search this blog 


    About IBM Privacy Contact