Making borders and fill ranges

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

Making borders and fill ranges

Post by Guest »

Hi,

when I first define the borders inside a cell-range, and then fill the range afterwards, the vertical and horizontal borders inside are lost.
(I'm evaluating the Trial-Version at the moment.)

Code:

FRange.BorderTopStyle := _XlsBorderStyle[AValue];
FRange.BorderLeftStyle := _XlsBorderStyle[AValue];
FRange.BorderBottomStyle := _XlsBorderStyle[AValue];
FRange.BorderRightStyle := _XlsBorderStyle[AValue];
FRange.BorderInsideHorizStyle := _XlsBorderStyle[AValue];
FRange.BorderInsideVertStyle := _XlsBorderStyle[AValue];

and then

FRange.FillPatternForeColor := SHADING_COLORS[AVAlue];

or

FRange.FillPatternBackColor := SHADING_COLORS[AVAlue];

This is not the same behaviour like Excel, right?
Is this a bug, or am I doing it wrong?

Thanks a lot.

With kind regards,
Ricardo Angeli
larsa
Site Admin
Posts: 926
Joined: Mon Jun 27, 2005 9:30 pm

Post by larsa »

Hello

Yes, the borders inside will be lost. Use BorderInsideXXX properties in order to set them.


Lars Arvidsson
Post Reply