现在的位置: 首页 > 综合 > 正文

asp.net 中使用excel组件权限设置

2012年06月16日 ⁄ 综合 ⁄ 共 255字 ⁄ 字号 评论关闭

1.在web.config中加入: 
<System.Web> 
<identity   impersonate= "true "   userName= "administrator "   password= "password "   /> 
</System.Web>

2.需要配置你的Dcomcnfg 

1、开始---运行   中输入 dcomcnfg 
2、在出现的画面中,选择 microsoft   Excel应用程序 这一项,然后点击   <属性> 按钮 
3、来到   安全性   这一个页面 
4、点击三个 <编辑> 按钮,把aps.net帐号加到权限列表中

抱歉!评论已关闭.