This is a bug in the Excel Report instrument driver that will be fixed in the next CVI release. In the meantime, you can perform the fix yourself as follows:
Edit the excelreport.c source file to fix the problem. Change "cellHandle" to "rangeHandle" in the call that gets the font handle near the top of the function. Make the change as shown below:
__caErrChk (Excel_GetProperty (cellHandle, NULL, Excel_RangeFont, CAVT_OBJHANDLE, &FontHandle));
changes to this:
__caErrChk (Excel_GetProperty (rangeHandle, NULL, Excel_RangeFont, CAVT_OBJHANDLE, &FontHandle));
The code posted earlier will work fine, but the change as I've shown here has several benefits:
-It will work for all of the font attributes.
-It is more efficient in that it
only makes one ActiveX call to Excel for the entire range rather than one call per cell.
-It works for more complex ranges. ("A1:A5,B7:B10")