mmww Posted January 29, 2010 Share Posted January 29, 2010 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 More sharing options...
mmww Posted January 29, 2010 Author Share Posted January 29, 2010 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now