WAI
Status Update
Comments
el...@gmail.com <el...@gmail.com> #2
Hi I got a big file in Google Sheets but when I tried to download a single sheet to Excel information is missing and goes away, I tried to copy and paste but some data is missing too. Any help?
mu...@google.com <mu...@google.com> #3
Hello there,
Thank you everyone for all the details provided. They have been forwarded internally. Any updates regarding this will be posted here.
Best regards
mu...@google.com <mu...@google.com> #4
Hello there,
This is the expected behavior in this situation as the getRowHeight()
method will end up returning the specified row height for the row in question or, if no height has been specified, the default value.
Best regards
cm...@gmail.com <cm...@gmail.com> #5
Why is the intended behavior of Google Sheets to export Excel files that look mangled when viewed in Excel? When will this problem be fixed?
Note: This issue is linked fromhttps://superuser.com/questions/1442995/
Note: This issue is linked from
je...@scotts.com <je...@scotts.com> #6
Comment has been deleted.
Description
the "getRowHeight" function in the "Sheet" class will return the underlying row height, not the actual visible row height.
Repro Steps:
1. Create a spreadsheet
2. In a cell, enable "Text Wrapping".
3. Add enough content to that cell so the text wraps to a new line (see attached image)
4. Run the following script.
function testRowHeights() {
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
sheet = spreadsheet.getSheets()[0];
numRows = sheet.getLastRow();
for( i = 1; i <= numRows; ++i ){
rowHeight = sheet.getRowHeight(i);
Logger.log( "row " + i.toString() + " height : " + rowHeight.toString() );
}
}
Observe outputted row height does not match visible row height.
Should there be a new function available called getVisibleRowHeight() ?
I'm only trying to access this information so I can manually set the row height for Excel export.
It would be even nicer if the Excel export automatically set correct row heights (see attached image)