How do you set the FontStyle in c++ builder

Questions and answers on how to use XLSReadWriteII 3/4/5.
Post Reply
Guest
Posts: 83
Joined: Tue Aug 16, 2005 6:08 pm

How do you set the FontStyle in c++ builder

Post by Guest »

Folks - so now I'm stuck on setting the FontSTyle in c++ builder.

I looked at the samples and found the following...

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


Not very helpful - what chance do I stand !!!

The code above will not compile.

Any help would be very appreciated - it's a big shame their isn't more C++ in the helpfile - life would be easier :x

Thanks

Karl
Zul-Jin
Posts: 3
Joined: Thu Dec 15, 2005 4:50 pm

Post by Zul-Jin »

FontStyle = TFontStyles() << fsBold
Spastika
Posts: 1
Joined: Mon May 05, 2008 1:35 pm
Location: Richards Bay, RSA

I tried it too!

Post by Spastika »

Hi Guys

I interpreted the advice that was given as follows:

Code: Select all

XLS->Sheet[ 0 ]->Cell[ 0][1 ]->FontStyle = TFontStyles() << fsBold;
The Message I then get when I try to compile is:
  • [C++ Error] Main.cpp(37): E2034 Cannot convert 'TFontStyles' to 'TXFontStyles'
What to do, what to do!?

I hope someone can help

Regards

Deon
Post Reply