在asp.net中创建Word文档 [英] create word document in asp.net

查看:202
本文介绍了在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.


这篇关于在asp.net中创建Word文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆