We are getting an error message when we run an agent saying:
“Missing RichTextParagraphStyle object”
This occurs on this line of code:
Call rti.AppendTable((intRows + 1), 7,columnStyles1)
We’ve described columnstyles1 as:
Dim columnStyles1(0 To 6) As NotesRichTextParagraphStyle
For i = 0 To 6
Set columnStyles1(i) = sesNotes.CreateRichTextParagraphStyle
columnStyles1(i).LeftMargin = 0 ’ position relative to cell border.
columnStyles1(i).FirstLineLeftMargin = 0
Next
columnStyles1(0).RightMargin = 3.0 * RULER_ONE_CENTIMETER
columnStyles1(0).Alignment = ALIGN_LEFT
columnStyles1(1).RightMargin = 1. * RULER_ONE_CENTIMETER
columnStyles1(1).Alignment = ALIGN_CENTER
columnStyles1(2).RightMargin = 5.0 * RULER_ONE_CENTIMETER
columnStyles1(2).Alignment = ALIGN_LEFT
columnStyles1(3).RightMargin = 1.5 * RULER_ONE_CENTIMETER
columnStyles1(3).Alignment = ALIGN_CENTER
columnStyles1(4).RightMargin = 1.5 * RULER_ONE_CENTIMETER
columnStyles1(4).Alignment = ALIGN_CENTER
columnStyles1(5).RightMargin = 1.5 * RULER_ONE_CENTIMETER
columnStyles1(5).Alignment = ALIGN_CENTER
columnStyles1(6).RightMargin = 2 * RULER_ONE_CENTIMETER
columnStyles1(6).Alignment = ALIGN_CENTER
I found, thru this forum, the IBM technote that says that the RichTextParagraphStyle array parameter will execute correctly on a Domino server on all platforms except on the AS400 operating system where it fails with the above mentioned error message. We are running it on an AS400.
And apparently this problem was resolved in 7.0.2.
Before we make the decision to upgrade to 7.0.2, I thought I should ask a couple of questions and hopefully clarify some issues.
This error, and the failure of the agent, and the subsequent error message, does not occur every time the agent, and the offending code, is run. Most of the time it runs fine. We’ve had maybe a 5% failure rate (I’m guessing somewhat here as to the percent). And I know that the offending line of code runs every time the agent runs. I would have thought that it would fail every time it runs.
-
Has anyone experienced this kind of intermittent behavior with this code? Is this the nature of this specific problem?
-
Does anything else come to mind regarding something else that could be the cause or the fix? What I’m getting at is this: Is upgrading to 7.0.2 my only option?
Any help would be greatly appreciated.