I’m building a rtf with LotusScript - it is the ‘body’ field of an email notification. First I write some lines of text using appendtext, then I add the contents of a formatted rtf field using appendrtitem. The appended rtf just contains formatted text…about 1 pages worth.
When I print the received email, I get page breaks in places they should not be. Looking at the email in the Notes client, and clicking view>show>page breaks, the incorrect page breaks do not show. However, file>print preview does show the new pages as the printer prints them - that is, in the wrong place.
When I change the code so that the appendrtitem comes before the appendtext code, the resulting document prints with correct page breaks.
Does anyone have a clues what is going on here?
In the end, this was not a problem with appending an RTI. Somehow, some pagination controls had crept into the text of the RTI I was using for testing, and this caused the strange page breaks. I’m leaving this here in the hopes that it will help someone else in the future. Look for the pagination controls on the 3rd tab of the text properties box.