The problem is that I dynamically create the GF:
---
var gfDataGravacao:GroupingField = new GroupingField();
gfDataGravacao.name = "data_gravacao";
gfDataGravacao.summaries=[sr];
if(!btTodosTrechos.selected) {
var gfReferencia:GroupingField = new GroupingField();
gfReferencia.name = "referencia";
gfReferencia.summaries=[sr];
group.fields = [gfDataGravacao,gfReferencia];
} else {
group.fields = [gfDataGravacao];
}
---
And the script to export to Excel:
---
if(!headerGenerated) {
header += "<th style='background-color: #"+headerColors[0].bg+";
color: #"+headerColors[0].txt+"; padding: 15px;'> ";
header += column.headerText;
header += "</th>";
}
data += "<td x:num>"+ column.itemToLabel(obj).replace(".",",")
+"</td>";
---
I tested the way you said but could not.
Thank you!
> > > > Ex: exporting the report of theimageabove I have the following