I am creating the new excel using EPPlus and I have requirement to keep specific no rows only to be editable and all other rows should be hidden(gray out) so user should not be able add any more rows. So we have write the code to hide rows i.e
wksht.Rows[lastRow + 1, 1048576].Hidden = true; (1048576 is the max limit for xlsx)
Due this one line of code, the size of the file becomes to heavy 2 to 3 megabyte, depending on the no of editable rows created.
Can someone please help us to resolve this issue?