Posted on: 4/12/2011 2:01:38 AM | Views : 426

Hi,
I'm having problems exporting gridview to excel file when there is no data in gridview.  It runs perfectly fine when there are rows in both grdUpload and grdDownload.  However, if there's none, it writes text literally inside the htw.Write() and ignores the formatting. 
Wrong Output in Excel:
<b><u><font size='4' color='blue'>File History Reporting:  - </font></u></b><br /><br /><b><u><font size='3'>Upload History</font></u></b><div>



Go to the complete details ...