Hi
Using CVI 8.5
My application needs to write an excel file.
some test code :
__caErrChk (ExcelRpt_SetCellValue(SheetMoteur, "A1", CAVT_INT, 30));
__caErrChk (ExcelRpt_SetCellRangeAttribute(SheetMoteur, "A2", ER_CR_ATTR_FORMULA, "=SI(A1=30;0;1)"));
The first line is OK, and 30 is written in A1.
The second line always fails.
'SI' if the french version of 'IF'
if I write directly the formula "=SI(A1=30;0;1)" under excel in A2, it works fine...
__caErrChk (ExcelRpt_SetCellRangeAttribute(SheetMoteur, "A2", ER_CR_ATTR_FORMULA, "=A1"));
the formula "=A1" works fine.
Thanks