Page 1 of 1

Why Didn't work Formats???

Posted: Tue Dec 12, 2006 11:37 am
by Zul-Jin
After this code Format has been applied for each cell in the sheet.
Why?

And why BorderTopStyle hasn't been applied?

Sample:

TCellFormat * F = XLS->Formats->Add();
F->XFont->Size = 15;
F->XFont->Color = xcRed;
F->BorderTopStyle = cbsThick;

XLS->Sheets->Items[0]->IntWriteNumber(1, 1, 0, 3456);

XLS->Write();

Posted: Tue Dec 12, 2006 11:40 am
by Zul-Jin
I use XLS version 3.00.06

Posted: Wed Dec 13, 2006 7:55 am
by larsa
Hello

Cells shall be formatted trough the Cell or Range properties. Don't use any IntWriteXXX methods. These are only for internal use, and will not be available in future releases.

Please study the FormatCells sample.


Lars Arvidsson