1、公式举例:
⑴2+2*3;
⑵A1+A2;
⑶Sum(A1:C3);
2、脚本举例:(支持VBScript、JavaScript)
⑴
if ReportX.GetCellValue(1, 1) = "" then
ReportX.SetCellValue 1, 1, "Hello World"
end if
当A1等于""时赋值"Hello World"
⑵
ReportX.InvalidatePaint
for i = 1 to ReportX.ColCount
for j = 1 to ReportX.RowCount
ReportX.SetCellValue i, j, (j – 1) * ReportX.ColCount + i
next
next
ReportX.ValidatePaint
从(1,1)到(最右最下单元格)赋值“(j – 1) * ReportX.ColCount + i
控件本身支持公式,但脚本解释需要MsScript.ocx控件。
只有ReportX2.3版本支持以上格式