Quantcast
Channel: LabWindows/CVI topics
Viewing all articles
Browse latest Browse all 5339

Error with ExcelRpt_SetCellRangeAttribute for ER_CR_ATTR_FORMULA

$
0
0

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


Viewing all articles
Browse latest Browse all 5339

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>