I have an agent (writen in LotusScript) when run creates a new doc using a form and along the way it adds new elements to it such as creating new RichTextItem, sections, tables, text...
in one part of the script after i create a new RichTextItem and a section in this item i am appending a table:
Dim mySection As New NotesRichTextItem(newDoc, thename)
Call mySection.BeginSection(theTitle)
Call mySection.AppendTable(numOfRow%, numOfCol%,,,styles)
Call mySection.EndSection
Dim rtNav As NotesRichTextNavigator
Set rtNav = mySection.CreateNavigator
Set rtTable = rtNav.GetFirstElement(RTELEM_TYPE_TABLE ) <--
when run on menu it runs perfectly and does what it is suppose to but when set to run on schedule it gives "Object variable not set" on marked line.
any help would be greatly appreciated
in one part of the script after i create a new RichTextItem and a section in this item i am appending a table:
Dim mySection As New NotesRichTextItem(newDoc, thename)
Call mySection.BeginSection(theTitle)
Call mySection.AppendTable(numOfRow%, numOfCol%,,,styles)
Call mySection.EndSection
Dim rtNav As NotesRichTextNavigator
Set rtNav = mySection.CreateNavigator
Set rtTable = rtNav.GetFirstElement(RTELEM_TYPE_TABLE ) <--
when run on menu it runs perfectly and does what it is suppose to but when set to run on schedule it gives "Object variable not set" on marked line.
any help would be greatly appreciated