2
Answers

Exporting data from datagrid to excel sheet

nagaraju

nagaraju

13y
2.3k
1
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)