问题描述
您好,
我多天来一直在合并多个单词文档(* .doc格式)。我通过使用Word.Application类得到了一个解决方案,它在控制台应用程序中运行良好。但是,如果我将该控制台应用程序集成到Web应用程序中,我将从ActiveX组件中获取异常,该组件在运行该Web应用程序的IE中被禁用(由于某些客户端问题,我无法启用ActiveX组件).Exception来自该行我在应用程序中第一次调用Word.Application(我用日志检查)。所以我假设Word.Application需要ActvieX组件。
所以我正在寻找其他方法来阅读word文档并合并它们。
有没有使用VB FileStream对象读取* .doc文件的可能性..?
任何帮助都会被评估。
谢谢。
Hello,
I am woking on merging multiple word documetns(*.doc format) from many days. I got a solution by using Word.Application class and it was working fine in a console application. But if I integrate that console applicaiton into web application, I am getting an exception from ActiveX Component which is disabled in IE where that web application is running(I cant enable ActiveX Componet due to some client side issues).Exception is coming from the line where I called the Word.Application for first time in application(I checked with logs). So I am assuming that ActvieX component is needed for Word.Application.
So I am in search of some other methods to read word documents and merge them.
Is there any possibility of reading *.doc files by using VB FileStream objects..?
Any help will be appriciated.
Thanks.
推荐答案
这篇关于使用word.application类合并word文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!