DIAdem Help

Object: Font

  • Updated2024-09-12
  • 1 minute(s) read

Object: Font

The Font object provides font properties in DIAdem REPORT.

The following example generates a comment in the current worksheet:

VBScriptPython

 

Dim oMyComment, oMyFont
Call Report.NewLayout()
Set oMyComment = Report.ActiveSheet.Objects.Add(eReportObjectComment,"MyComment")
oMyComment.Comment.Text = "This is a comment"
Set oMyFont = oMyComment.Comment.Font
Call oMyFont.Color.SetPredefinedColor(eColorIndexBlue)
oMyFont.Name = "Tahoma"
oMyFont.Size = 7
Call Report.Refresh()