Excel export of tables works funny
Bug #495026 reported by
Florence Rusciano
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Global Health Observatory |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
When I export a table into excel, the excel files shows some kind of "page breaks" (two empty rows followed by repetition of column headings) which make it difficult to manipulate the data.
Also I exported some tables this morning, and still cannot see the WHO logo, nor the disclaimer.
Changed in gho: | |
milestone: | none → 1.0 |
To post a comment you must log in.
This is a tough one, which needs an administrative decision IMO. Here is why:
In the file called Navigation.js (around line 765), there is a Javascript that looks like the code below. If you remove " || type=="XLS"" it will format the Excel as one continuous set of rows (ie, the reported bug). BUT, there will be no footnotes with the data export. If you keep type==XLS then you get footnotes but the rows have breaks in them.
Steve
/*
Changed by S MOORE 30 Nov 2009
var includeMetadata = "N";
if(type=="PDF"){
includeMetadata = "Y";
} */
var includeMetadata = "N";
if(type=="PDF" || type=="XLS"){
includeMetadata = "Y";
}