nagaraju

nagaraju

  • NA
  • 87
  • 129.5k

Exporting data from datagrid to excel sheet

Sep 14 2011 3:19 AM
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

Answers (2)