Hide Excel Gridlines [message #640247] |
Fri, 19 November 2010 13:25  |
Eclipse User |
|
|
|
Hi Jason,
I was searching this forum for how to hide gridlines in the excel output and came across this code snippet in a response from you :
You should be able to do this in the onRender for the grid.
Add something like this:
if (reportContext.getOutputFormat() == "xls"){
this.getStyle().borderBottomStyle = "NONE";
this.getStyle().borderLeftStyle = "NONE";
this.getStyle().borderRightStyle = "NONE";
this.getStyle().borderTopStyle = "NONE";
}
I used it in my report but the gridlines are still visible in the excel output.
Could you please help me understand what I need to do to make it work?
Many thanks.
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.09896 seconds