我想在Asp.net中将一个网页以Word的形式导出,
以下是我的代码
   word = new ActiveXObject('Word.Application');
            word.Application.Visible = true;
            var mydoc=word.Documents.Add('',0,1);
            myRange =mydoc.Range(0,1);
            var sel=document.body.createTextRange();//Layer1.document.body.createTextRange()
            sel.select();
            document.execCommand('Copy');//Layer1.document.execCommand('Copy');
            sel.moveEnd('character');
            myRange.Paste();
            window.location.href=window.location.href;
            word.ActiveWindow.ActivePane.View.Type=9;可是现在运行就有错,一开始出现错误25090,说什么Office安装遇到问题之类的,
然后又出现一个对话框说Automation服务器不能创建对象
请问哪位高手能帮我解决。
在此先谢过了!