开发者

Getting Exception when trying to export data form datagrid to excel in silverlight 4.0

开发者 https://www.devze.com 2023-02-11 07:32 出处:网络
Am using silverlight 4.0,here am trying to export the data from datagrid to excel and getting exception 开发者_运维百科as This operation is not supported in the current context for excel when running

Am using silverlight 4.0 ,here am trying to export the data from datagrid to excel and getting exception 开发者_运维百科as This operation is not supported in the current context for excel when running in the browser but it works in OOB(out of browser) window.Here my code snippet is

dynamic excel = AutomationFactory.CreateObject("Excel.Application");

can anyone help for this or any suggesion to export the data.

Thanks,


The AutomationFactory is only available in a OOB app with Elevated Trust. You cannot use it in browser.

Suggested Reading: Trusted Applications

0

精彩评论

暂无评论...
验证码 换一张
取 消