如何自动创建包含自定义 SharePoint 列表中的列表字段的 Word 文档?

发布于 2024-08-26 06:07:27 字数 208 浏览 4 评论 0原文

是否可以自动创建包含自定义 SharePoint 列表中的列表字段的 Word 文档?

这是场景: - 自定义列表(超过 100 列) - Word 模板(尚不确定最好将它们存储在哪里) - 报名表将提供模板数据(或部分数据,即客户名称、销售代表) - 带有按钮的表单(即“创建订单表单”、“创建 PO”),

其想法是只需按一下按钮即可从自定义列表生成部分填充的模板。

Is it possible to automatically create Word documents which include list fields from a custom SharePoint list?

here is the scenario:
- custom list (over 100 columns)
- Word templates (not sure where is best to store them yet)
- Entry Form will provide data for the templates (or partial data, ie Client name, Sales Rep)
- a form that will have buttons (ie 'Create Order Form', 'Create PO')

the idea is to be able to generate partial populated templates from a custom list with a puch of a button.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

梦里人 2024-09-02 06:07:27

您应该查看 Word Control Toolkit,它使用 Open XML 格式 SDK 来实现您的需求。

基本功能是您使用选定列表项上的编辑控制块来生成并使用可从下拉列表中选择的模板填充 Word 文档。

我已经成功地使用它根据合同清单创建可打印的发票。

以下是一些可帮助您入门的链接:

使用开放 XML 内容控件从 SharePoint 列表生成文档

文字内容控制工具包 (Codeplex)

视频演示:将 SharePoint 列表数据合并到 Word 文档中

将 Word 2007 内容控件链接到自定义 XML

You should look into the Word Control Toolkit, which uses the Open XML format SDK to achieve what you require.

The basic functionality is that you use the Edit Control Block on a selected list item to generate and populate a Word document using a template you can select from a drop-down list.

I've used it successfully to create printable invoices based on a contracts list.

Here's some links to get you started:

Generating Documents from SharePoint Lists with Open XML Content Controls

Word Content Control Toolkit (Codeplex)

Video Demo: Merging SharePoint List Data into Word Documents

Linking Word 2007 Content Controls to Custom XML

寒尘 2024-09-02 06:07:27

如果您使用自定义字段(或者更好的是内容类型)创建文档库,Office 2007 文档将包含这些字段作为文档的属性。 Word 包含将这些字段添加到文档的功能(插入 -> QuickParts - 文档属性)。

您可以通过向内容类型添加文档模板来自动在文档上放置项目。

If you create a document library with custom fields (or better yet a content type), Office 2007 documents will include the fields as properties of the document. Word inludes features to add those fields to the document (Insert->QuickParts-Document Property).

You can automate the placement of items on the document by adding a document template to your content type.

混吃等死 2024-09-02 06:07:27

我知道您的帖子已过时,但如果您仍然有空,您的建议能否更详细:

“如果您创建一个包含自定义字段(或者更好的是内容类型)的文档库,Office 2007 文档将包含以下字段: Word 包含将这些字段添加到文档的功能(插入 -> QuickParts - 文档属性)。
您可以通过将文档模板添加到您的内容类型来自动在文档上放置项目。”

I know your post is old but if you are still available, can your proposition be more detailed:

"If you create a document library with custom fields (or better yet a content type), Office 2007 documents will include the fields as properties of the document. Word inludes features to add those fields to the document (Insert->QuickParts-Document Property).
You can automate the placement of items on the document by adding a document template to your content type."

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文