更改文档模板后如何更新文档库中的现有文档?

编程入门 行业动态 更新时间:2024-10-23 02:06:09
本文介绍了更改文档模板后如何更新文档库中的现有文档?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

您好,

我必须对文档模板(单词模板)进行一些更改.目前,我在文档库中大约有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 butexisting 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

> stackoverflow/questions/6294084/change-or -add-template-in-word-document

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

manipulate the code as required in SP2013.

此致

Gaurav

更多推荐

更改文档模板后如何更新文档库中的现有文档?

本文发布于:2023-11-28 10:11:48,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1641982.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文档   库中   模板

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!