Jump to content

losing color by exporting to xls


mmww

Recommended Posts

Hi,

Do you know why I get different color after xls export?

I need to get color RGB (222,231,247) instaned of it I get RGB(204,204,255).

It doesn't work just for xls, for PDF, TXT etc it is ok.

 

why? how can I prevent it?

 

 

 

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Ok I've got it. You need to set a flag.

 

If this flag is not set, the nearest color from the standard XLS palette is chosen for a report color.

If the flag is set, the nearest not yet modified color from the palette is chosen and modified to exactly match the report color.

 

So this is solution:

 

exporterXLS.setParameter(JExcelApiExporterParameter.CREATE_CUSTOM_PALETTE, true);

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...