Blog Archives

DataGrid/Gridview to Excel file generation

I have often feel the need for developers to generate an Excel report requirement. Here is a small code snippet to produce the same. C# Code string path = Path.GetTempFileName(); StreamWriter writer = new StreamWriter(path); HtmlTextWriter htmlWriter = new HtmlTextWriter(writer);

Tagged with: , ,
Posted in ASP .NET