Search found 11 matches

by jleg
Tue May 21, 2013 9:26 am
Forum: XLSReadWritwII 6
Topic: Reverse font color in cell (excel97, v5.10.18)
Replies: 0
Views: 2215

Reverse font color in cell (excel97, v5.10.18)

Hello Lars,

If you use :

Code: Select all

XLS[0].Cell[Col, Row].FontColor := clRed;
and export in Excel97 format, the cell font is not Red but Blue (and of course, if you put clBlue color, you get Red in the cell).
I think the pb is that delphi TColor constants are in BGR format and not in RGB format.

jleg.
by jleg
Wed Apr 17, 2013 5:07 pm
Forum: XLSReadWritwII 6
Topic: EListError exception when deleting a sheet (v5.10.17)
Replies: 1
Views: 1865

EListError exception when deleting a sheet (v5.10.17)

Hello, if you execute the code below, you will get an EListError exception. XLS.Version := xvExcel97; XLS.Delete(0); XLS.Add; XLS.FileName := 'C:\Test.xls'; XLS.Write; I think the pb is that in the TXLSWorkBook.Delete method, the FManager.Worksheets.Count is Ok (value = 1) but when you use WritePrep...
by jleg
Wed Apr 17, 2013 4:38 pm
Forum: XLSReadWritwII 6
Topic: XLS version lost afer Clear in v5.10.17
Replies: 1
Views: 1691

XLS version lost afer Clear in v5.10.17

Hello,

I initialize the component to xvExcel97 and i call a Clear(0) then the version is changed to xvExcel2007.

Code: Select all

XLS.Version := xvExcel97;
XLS.Clear(0);
After that, XLS is in xvExcel2007 format !

NB: if you use Clear (instead of Clear(0)), there is the same pb.
by jleg
Wed Apr 17, 2013 2:09 pm
Forum: XLSReadWritwII 6
Topic: Different cell borders
Replies: 2
Views: 2154

Re: Different cell borders

Hello,
It's ok now in 5.10.17, if i'm right, i had the problem in default format.
Thanks again.
by jleg
Wed Apr 17, 2013 1:52 pm
Forum: XLSReadWritwII 6
Topic: Cell borders in default format do not work
Replies: 2
Views: 2127

Re: Cell borders in default format do not work

Great, it's ok now.
Thank you very much.
by jleg
Tue Apr 16, 2013 4:01 pm
Forum: XLSReadWritwII 6
Topic: Cell borders in default format do not work
Replies: 2
Views: 2127

Cell borders in default format do not work

Hello, If you take your FormatCells sample and add the following lines in the btnDefaultFormatClick event, the borders never appear (i use XLS.Version := xvExcel97). // Create second default format. XLS.CmdFormat.BeginEdit(Nil); XLS.CmdFormat.Fill.BackgroundColor.RGB := $FF1010; XLS.CmdFormat.Font.N...
by jleg
Tue Apr 16, 2013 10:06 am
Forum: XLSReadWritwII 6
Topic: TXLSCellType Enumerated Values
Replies: 6
Views: 3751

Re: TXLSCellType Enumerated Values

I found the definition of TXSLCellType in the Xc12Utils5 unit in the SrcXLS directory.
by jleg
Tue Apr 16, 2013 7:24 am
Forum: XLSReadWritwII 6
Topic: TXLSCellType Enumerated Values
Replies: 6
Views: 3751

Re: TXLSCellType Enumerated Values

Hello, I had the same problem, the definition of the TXLSCellType has changed. So, just add 'x' as prefix. See definition below. type TXLSCellType = (xctNone, //* Undefined cell. xctBlank, //* Blank cell. xctBoolean, //* Boolean cell. xctError, //* Cell with an error value. xctString, //* String cel...
by jleg
Mon Apr 15, 2013 10:44 am
Forum: XLSReadWritwII 6
Topic: Different cell borders
Replies: 2
Views: 2154

Different cell borders

Hello, In v4, we could use the properties BorderLeftStyle, BorderBottomSyle,... to set border's style but in V5, how can i set different styles to the borders of a cell using CmdFormat (FStyle is define protected in the class). I know i can do it if i set the border for a particular cell (ex: XLS[0]...
by jleg
Tue Apr 09, 2013 1:54 pm
Forum: XLSReadWritwII 6
Topic: Migrating code from v4
Replies: 2
Views: 2753

Re: Migrating code from v4

Hello,

For my 4th question, you answered "Yes" but there were 2 solutions, what is the good one :

4. How to replace

Code: Select all

XLS.Sheets[i].DrawingObjects.Pictures.Clear
by

Code: Select all

XLS.Sheets[i].Drawing.BIFFDrawing.Pictures.Clear
or just by

Code: Select all

XLS.Sheets[i].Drawing.Clear
jleg
by jleg
Thu Apr 04, 2013 12:29 pm
Forum: XLSReadWritwII 6
Topic: Migrating code from v4
Replies: 2
Views: 2753

Migrating code from v4

Hello Lars, As you tell me, i've finally made a new registration. Thanks for your attention. I'm trying to migrate code from v4 to v5 and i've some difficulties because many changes have been made in the component code. The few indications done in the changes.txt file are not enough to migrate. Is t...