Trying to set column width in C++ Builder 6 compiler error

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

Trying to set column width in C++ Builder 6 compiler error

Post by Guest »

Folks

I'm an amateur programmer and sure I'm being stupid but I'm hung up on something daft. I want to set the column width and found the following code in the examples...

XLS.Sheet[0].Columns[6].CharWidth := 12;

Looked easy so In c++ I converted for my use as follows..

XLS1->Sheets->SheetByName("Backlog")->Columns[11]->CharWidth = 50;

But the compiler copmplains wit the following error...

[C++ Error] Unit1.cpp(178): E2288 Pointer to structure required on left side of -> or ->*.

I can't believe I've nearly finished my little project and I just can't move on now.

Any help would be very much appreciated

Thanks

Karl
Post Reply