Tech Support > Microsoft Windows > Windows CRM > How to Export Data To Excel ?
How to Export Data To Excel ?
Posted by Amit K on July 19th, 2005


Hi All,
I am trying to export data from DataSet to Excel. For this I am using ...

DataGrid dgExport = new DataGrid();
dgExport.DataSource = dsExport; // DataSet dsExport
dgExport.DataBind();

System.IO.StringWriter stringWrite = new System.IO.StringWriter();
System.Web.UI.HtmlTextWriter htmlWrite = new HtmlTextWriter(stringWrite);
dgExport.RenderControl(htmlWrite);

return stringWrite.ToString();

Is there any other way to make it more optimum ? " Does anybody have any
idea about how Export to Excel happens in MS CRM ? "

Posted by Peter Lynch on July 19th, 2005


You should really post this type of question to
microsoft.public.crm.developer


"Amit K" <Amit K@discussions.microsoft.com> wrote in message
news:E4A9EB3F-FCEA-46BB-8282-1B4A78D7EF06@microsoft.com...



Similar Posts