在asp.net中创建Word文档
问题描述:
你好朋友,
我需要在asp.net应用程序中创建一个word文件.如果我的系统中安装了MS-Office,则可以执行此操作.但是,如果将Office卸载,则会出现异常,我试图复制Office dll并将其放入bin文件夹.我试图将它们添加到未安装Office的系统的GAC中.但是,我仍然收到奇怪的例外.请提出任何解决方案.
谢谢,
Jagjot
Hello friends,
I have requirement to create a word file in my asp.net application. I am able to do this if MS-Office is installed in my system. But if office is uninstalled then it gives exception, I tried to copy office dlls and put into the bin folder. I tried to add them into the gac of a system which dont have office installed. But still I am getting strange exceptions. Please suggest any solution.
Thanks,
Jagjot
答
您必须在服务器上安装Office.仅仅将dll放入垃圾箱或GAC中是不够的,安装程序需要这些注册表设置和其他dll才能使Office正常运行.
You must have Office installed on the server. Simply placing the dlls in the bin or GAC is not enough, there are registry settings and other dlls that are required that the setup program places for Office to function.
希望 ^ ]会给您一个想法.
Hope Word[^]will give you an idea.