Hi
I have a problem with RichtextParagraphStyle, it works when I run the agent from the screen, but when i try to run it scheduled on the server I get the following message:
AMgr: Agent (‘XX’) error message: Missing RichTextParagraphStyle object
My code look like this:
Set rtpStyle = s.CreateRichTextParagraphStyle
For column = 1 To Cint(docsys.Antal_Felter(0))
Set rtpS(column) = s.CreateRichTextParagraphStyle
richStyle.bold = True
richStyle.NotesFont = rtitem.GetNotesFont(doc.V_Font(0),True)
richStyle.FontSize = doc.V_FontSize(0)
Call rtitem.AppendStyle(richStyle)
rtps(column).Alignment = 0
rtpS(column).RightMargin = RULER_ONE_CENTIMETER * 2
rtpS(column).FirstLineLeftMargin = 0
rtpS(column).LeftMargin = 0
Next
Call rtitem.AppendTable( 1, Cint(docsys.Antal_Felter(0)),rtps)
Can anyone please help
Tia Jan Seldrup