案例研究:在服务器上生成Microsoft Word文档 [英] CASE STUDY: generating Microsoft Word Documents on a server

查看:95
本文介绍了案例研究:在服务器上生成Microsoft Word文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个问题是我提出的,但不是我的专业领域,所以我想我会把它打开到论坛,看看是否有人有任何好主意。


问题从Word模板在服务器上生成Microsoft Word文档并从数据源注入数据。这个问题有很多解决方案不太令人满意:


1.使用Microsoft Word对象模型并不好,因为它需要在服务器上安装客户端应用程序如果你不是很小心的话,就会把进程打开。

2.使用WordML并不是很好,因为它是XML而不是真正的单词文档。

3.使用HTML是可以的,但它在一天结束时不是HTML。

4.使用RTF是同样的问题。

要求

This problem was proposed to me but not really my area of expertise so I thought I would open it up to the forum to see if anyone had any bright ideas.

The problem is generating Microsoft Word Documents on a server from Word templates and injecting data from a data source. There are a number of solutions to this problem that are less than satisfactory:

1. Use the Microsoft Word Object Model is not good as it requires the installation of a client application on a server and it leaves processes open if you are not really careful.
2. Using WordML is Not great because it''s XML and not really word documents.
3. Using HTML is OK but it''s HTML not word at the end of the day.
4. Using RTF is same problem.

Requirements:

  1. 文档将在服务器上生成,没有安装Word应用程序。
  2. 如果可能,输入应该是Word文档或Word模板文件,以便业务用户可以创建它们。我会放宽这个要求以获得更好的替代方案。
  3. 解决方案应该是可扩展的。
  4. 我不关心使用什么技术,PHP,Java,.NET?
  5. 解决方案应该有效

推荐答案

试着让别人为你做你的工作,是吗?玛丽?
Trying to get someone else to do your job for you, eh Mary?



试着让别人为你做你的工作,是吗?玛丽?
Trying to get someone else to do your job for you, eh Mary?



哈哈! Naw ......


这只是我的一位客户向他们的IT员工提出的建议。他们也要求我输入。

LOL! Naw ...

This is just something one of my clients proposed to their IT staff. They asked for my input as well.


Open Office是可编写脚本的;我相信您可以将其设置为在不调用GUI的情况下进行文件转换,就像使用MS Office的craptools一样。
Open Office is scriptable; I believe you can set it up to to file conversions without invoking a GUI as you do with MS Office''s craptools.


这篇关于案例研究:在服务器上生成Microsoft Word文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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