Word Automation Services 开发人员的常见问题

上次修改时间: 2015年3月9日

适用范围: SharePoint Server 2010

本主题提供了 Word Automation Services 常见问题的答案。

常见问题

问题

答案

Word Automation Services 在何处记录事件?

Word Automation Services 在遇到错误的应用程序服务器上记录大多数错误的条目。

在何处安装 Word Automation Services 程序集?

在全局程序集缓存中安装 Word Automation Services 以供服务使用。为了方便开发,还可在以下位置查找该程序集:Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\ISAPI。

是否可以使用 Word Automation Services 将文档转换为 Word 客户端应用程序可转换为的格式之外的其他格式?

不可以。Word Automation Services 只能将文件转换为 Word 客户端支持的部分保存格式。

是否能查询后端数据库以直接执行 create/read/update/delete (CRUD) 任务?

与 SharePoint 文档库和列表中的所有内容类似,Word Automation Services 内容存储在 Microsoft SQL Server 数据库中。但不建议或不支持直接查询数据库。相反,应使用 Word Automation Services API 查询数据库。有关详细信息,请参阅编程 Word Automation Services

是否能使用 Word Automation Services 进行打印?

Word Automation Services 不包含用于打印文档的功能。但可以将文档转换为 PDF 或 XPS 格式,然后将这些文档后台打印到打印机。

是否能在不购买或安装 SharePoint Server 2010 的情况下使用 Word Automation Services?

Word Automation Services 是 SharePoint Server 2010 的一项功能。您必须购买并安装 SharePoint Server 2010 才能使用 Word Automation Services。

如何配置 Word Automation Services 设置?

使用 SharePoint Server 2010 管理中心网站可配置 Word Automation Services。

如何了解有关特定事件的含义的更多信息?

有关详细信息,请参阅Word Automation Services 的错误消息和错误代码

Word Automation Services 是否支持邮件合并和文档程序集?

若要执行批量文档程序集任务,请使用 Open XML SDK 2.0(该链接可能指向英文页面)

如何监视转换作业的状态?

有关详细信息以及如何监视转换作业的状态的示例,请参阅步骤 4:创建 Web 应用程序页以监视转换

Word Automation Services 是否能通过一个转换作业转换为多个格式?

单个转换作业只能将文件转换为单个输出格式。若要将一个文件转换为两个或两个以上的输出格式,您需要为每个输出格式创建至少一个作业。

完成转换将需要多长时间?

Word Automation Services 由一个计时器作业驱动,该作业将定期运行以将 Word Automation Services 作业项队列中的转换项分配给应用程序服务器。例如,如果 Word Automation Services 计时器作业每 15 分钟运行一次,则转换所需的时间为 15 分钟加上转换文件所花费的时间。实际时间将取决于计划下一次运行 Word Automation Services 计时器作业的时间。如果 Word Automation Services 作业项队列中包含其他等待处理的作业项,则可能需要花费更长的时间来处理转换。实际上,在队列具有多个项的系统中最终转换某个作业项之前,可能已经过了几个小时的时间。

可以在何处找到针对 Word Automation Services 的容量规划指南?

有关 Word Automation Services 的性能特征的详细信息,请参阅 SharePoint Server 2010 主题:性能和容量管理 (SharePoint Server 2010)

Word Automation Services 部署中每秒可进行多少次转换?

Word Automation Services 的吞吐量是变化的,具体取决于多个因素。

在将单个 Word 客户端计算机的性能与运行单个 Word Automation Services 工作进程的类似应用程序服务器进行比较时,Word Automation Services 工作进程的速度应比 Word 客户端应用程序的速度快 1 到 2 倍。通过增加每个应用程序服务器的工作人员数量或增加 SharePoint Server 2010 场中应用程序服务器的数量,将大大增加 Word Automation Services 的吞吐量。

是否能创建使用 Word Automation Services 的沙盒解决方案?

无法在沙盒解决方案中使用 Word Automation Services。

请参阅

概念

Word Automation Services 疑难解答

其他资源

关于 Word Automation Services 的疑难解答和常见问题

Word Automation Services 入门

Word Automation Services 基础

编程 Word Automation Services