Exporting data from datagrid to excel sheet
Hi,
I am going to export my datagrid data to excel . under click event i write that code
dynamic excel = AutomationFactory.CreateObject("Excel.Application");
but here i am getting the error called
This operation is not supported in the current context.
i set the Requiredelevated trust when running outside the browser in out of browser setting . still i am getting the error.
can anybody please help me . it is very urgent for me.
Thanks
P.Nagaraju