Grid style in exported Excel

is it possible to have the same style (backgroundcolor, fontcolor, etc) in exported excel as in Grid?
Thanks in advance.

You should use full_color mode to export grid colors:

mygrid.toPDF('../server/generate.php', 'full_color');

Thanks. But i use java, not php…

Java export grid2pdf can process custom colors.
Unfortunately there are some limitations on using custom colors in the current grid2excel on Java.
But we’ll implement custom color support in the next version.