You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I don't use the SetRowVisible method, my Excel file remains small, around 7KB. However, here's the code I'm using:
funchideRows(f*excelize.File, sheetstring, startRowint) error {
forrow:=startRow; row<=1048576; row++ { // Max rows in Exceliferr:=f.SetRowVisible(sheet, row, false); err!=nil {
returnfmt.Errorf("failed to hide row %d: %w", row, err)
}
}
returnnil
}
If I apply SetRowVisible to hide all rows from 22 downwards, the size of the Excel file (xlsx) increases dramatically to about 2.5MB. Is there a way to avoid this significant increase in file size?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
When I don't use the SetRowVisible method, my Excel file remains small, around 7KB. However, here's the code I'm using:
If I apply SetRowVisible to hide all rows from 22 downwards, the size of the Excel file (xlsx) increases dramatically to about 2.5MB. Is there a way to avoid this significant increase in file size?
Beta Was this translation helpful? Give feedback.
All reactions