更改文档模板后如何更新文档库中的现有文档? [英] How to update existing documents in document library after changes in document template?

查看:104
本文介绍了更改文档模板后如何更新文档库中的现有文档?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我必须对文档模板(单词模板)进行一些更改.目前,我在文档库中大约有1000个文档,是的,我需要全部这些文档进行更改.我试图对模板进行更改,但是现有文档未更新 使用新的模板更改.

I have to make few changes to document template (word template). Currently, I have around 1000 documents in document library, and yes, I need all of them to updated with changes. I tried to do changes in template but existing documents do not update to use the new template changes.

此外,我尝试通过在网站内容类型下编辑内容类型时为更新从该类型继承的所有内容类型"选项中选择是"来更新内容类型,但这没用.

Also,  I tried to update the content type by selecting yes for the option "Update all content types inheriting from this type" while editing the content type under the site content type but it didn't work.

我需要更新所有文档以匹配新的模板结构.有什么方法可以强制现有文档自动使用新模板?否则,没有人有使用Powershell或C#实现相同代码的示例代码吗?

I need to update all the documents to match the new template structure. Is there any way to force existing documents to use the new template automatically? otherwise do anyone have sample code to achieve the same using powershell or C#?

在此先感谢您的帮助.

推荐答案

嗨Jaydeep,

Hi Jaydeep,

尝试下面链接中提到的解决方案

Try solution mentioned on below Link

> http://stackoverflow.com/questions/6294084/change-or -add-template-in-word-document

根据SP2013中的要求操作代码.

manipulate the code as required in SP2013.

此致

Gaurav


这篇关于更改文档模板后如何更新文档库中的现有文档?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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