Page 1 of 1

FillPatternForeColor in version 5?

Posted: Tue Aug 19, 2014 2:16 pm
by billegge
I have upgraded from version 4 to the current version 5 and the following code snip no longer compiles, what is the correct way to do this in version 5?

I get error
[DCC Error] XLSRWHelp.pas(62): E2010 Incompatible types: 'Cardinal' and 'TXc12IndexColor'

Code: Select all

  // Set background color for Column Headers (works in version 4)
  ASheet.Range.Items[0, FirstRow, R.Fields.Count-1, FirstRow].FillPatternForeColor:= xcPaleSky;

Re: FillPatternForeColor in version 5?

Posted: Wed Nov 05, 2014 5:00 pm
by Costtella
What unit are you using to achieve using the constant "xcPaleSky"?

Re: FillPatternForeColor in version 5?

Posted: Fri Nov 07, 2014 10:51 am
by larsa
Hello

Search the source files for "xcPaleSky".