01-17-2013 10:40 AM
I'm learning the new 2012 Diadem object oriented reporting.
I am trying to change the text of a report comment programmatically.
Dim MyComment
Set MyComment = Report.ActiveSheet.Objects.Add(eReportObjectComment,"MyComment")
MyComment.Position.ByBorder.top=30
MyComment.Position.ByBorder.bottom=20
MyComment.Position.ByBorder.Left=20
MyComment.Position.ByBorder.right=30
MyComment.Text="Some text"
Error msg on the last line of the previous code = "Object doesn't support this
property or method: 'Text'"
I can change it manually by dbl-clicking the comment, but want to change it in
the script.
'Text' is offered as a valid option while typing the script. The 'text' object
works fine if I'm modifying a eReportObjectText but not a eReportObjectComment.
Thanks,
James
Solved! Go to Solution.
01-17-2013 10:53 AM
Hello James,
please check it with modified last code line:
MyComment.Comment.Text="Some text"
Dia791
01-17-2013 11:01 AM
Thanks Dia791, that did work.
James