DIAdem Help

Object: FontWithBorder

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

Object: FontWithBorder

The FontWithBorder object provides font properties in DIAdem REPORT.

The following example generates a text in the current worksheet:

VBScriptPython

 

Dim oMyText, oMyFont
Call Report.NewLayout()
Set oMyText = Report.ActiveSheet.Objects.Add(eReportObjectText,"MyText")
oMyText.Text = "This is a text"
Set oMyFont = oMyText.Font
Call oMyFont.Color.SetPredefinedColor(eColorIndexBlue)
oMyFont.Name = "Tahoma"
oMyFont.Size = 10
oMyFont.Border = True
Call Report.Refresh()