Page 1 of 1

How to set font styles in C++

Posted: Mon Mar 04, 2013 11:54 am
by graphicequaliser
I noticed this in the examples :-

// Don't know how to write this in C++ ...
// XLS->Sheet[ 0 ]->Cell[ 0][1 ]->FontStyle = [xfsBold,xfsItalic];

I program in C++ and this is how you do it :-

XLS->Sheet[ 0 ]->Cell[ 0][1 ]->FontStyle = XLS->Sheet[ 0 ]->Cell[ 0][1 ]->FontStyle <<xfsBold <<xfsItalic;

HTH,
Graphic