How to set font styles in C++

Questions and answers on how to use XLSReadWriteII 3/4/5.
Post Reply
graphicequaliser
Posts: 6
Joined: Wed Feb 06, 2013 9:44 am

How to set font styles in C++

Post 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
Post Reply