when I generate a report using asp.net with c# into xls format it is initially approximately 32 MB. But when i open it using excel and save it as xls format providing different name, the size is reduced to approximately 10 KB, but the data and the formatting isnt lost both the file appear identical in Excel.
why is that so?
How could i initially generate a report of smaller file size?
32MB File Size contains data like
<tr height="20" style='height:15.00pt;'>
<td class="xl66" height="20" style='height:15.00pt;' x:str>PR</td>
<td class="xl72" x:str>00923</td>
<td class="xl66" align="right" x:num>2016</td>
<td class="xl66" align="right" x:num>25</td>
<td class="xl66" align="right" x:num>89</td>
<td class="xl66" align="right" x:num>89</td>
<td class="xl66" align="right" x:num>45</td>
<td class="xl66" align="right" x:num>52</td>
<td class="xl66" align="right" x:num>2316</td>
<td class="xl73" align="right" x:num="0.87">87%</td>
<td class="xl73" align="right" x:num="1.e-002">1%</td>
<td class="xl73" align="right" x:num="4.0000000000000001e-002">4%</td>
<td class="xl73" align="right" x:num="4.0000000000000001e-002">4%</td>
<td class="xl73" align="right" x:num="2.e-002">2%</td>
<td class="xl73" align="right" x:num="2.e-002">2%</td>
<td class="xl73" align="right" x:num="0.92000000000000004">92%</td>
</tr>
10MB file contains some random functions as in
https://gist.github.com/anonymous/f979595cf169575aea3b94d9abc3b525