Skip to main content
Question

Setting colours when writing Excel


nic_ran
Contributor
Forum|alt.badge.img+16
Hi,

 

I'm tryng to do some fancy colour manipulation when using the Excel writer. I'm already using a template XLS to define the basic structure of my output worksheet and that's working fine.

 

 

I'm also defining custom cell (column) formatting on the feature type user attribute definitions, which allows me to specify custom number/date/text format strings and a custom font colour. That's working fine.

 

 

What I would like to do is set a custom background colour for a particular row.

 

 

I know that FME is capable of setting the background colour because if I choose the "Simple" Format Type for the attribute column properties I can specify the font / font color / fill color for a column and it works. However, if I choose the "Custom" Format Type then I have to enter in an Excel compliant format string which onlly offers font colour and not fill colour.

 

 

I've tried setting the fme_fill_color attribute on the desired features but it didn't have any effect.

 

 

Has anyone been able to achieve anything like this?

 

 

I'm using FME 2013 SP3.

 

 

thanks,

 

Nic

 

sigtill
Contributor
Forum|alt.badge.img+24
  • Contributor
  • August 8, 2013

nic_ran
Contributor
Forum|alt.badge.img+16
  • Contributor
  • August 9, 2013
Thanks Sig,

 

I've looked at that post in detail but it doesn't help with what I'm trying to do.

 

1. Setting attributes in this way only applies to columns (attribute definitions)

 

2. The custom colours only set the font colour and not the background/fill colour

 

3. Using the "Simple" format option I can set the fill colour but not the format mask

 

thanks,

 

Nic

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings