FillPatternForeColor in version 5?

Questions and answers on how to use XLSReadWriteII 5.
Post Reply
billegge
Posts: 23
Joined: Fri Feb 08, 2008 8:34 pm

FillPatternForeColor in version 5?

Post 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;
Costtella
Posts: 1
Joined: Wed Nov 05, 2014 4:57 pm

Re: FillPatternForeColor in version 5?

Post by Costtella »

What unit are you using to achieve using the constant "xcPaleSky"?
larsa
Site Admin
Posts: 926
Joined: Mon Jun 27, 2005 9:30 pm

Re: FillPatternForeColor in version 5?

Post by larsa »

Hello

Search the source files for "xcPaleSky".
Lars Arvidsson, Axolot Data
Post Reply