我关注了这个博客: http://blogs.msdn.com/b/edhild/archive/2007/02/05/how-to-supply-a-doc-template-for-a-content-type-in- a-feature.aspx 并创建了一个上传 doc 文件的功能(作为模板的内容类型)。我成功部署了该功能并激活了它。但是,当我移至文档库并向其中添加内容类型(设置 > 高级设置)时,它显示值不在范围内。我可以在 cts > 中看到doc文件子文件夹,当我单击文档库上的“新建”按钮时,我也可以看到它。但是,当我下载该文件时,Word 说该文档已损坏。知道为什么吗?
I've followed this blog: http://blogs.msdn.com/b/edhild/archive/2007/02/05/how-to-supply-a-doc-template-for-a-content-type-in-a-feature.aspx and created a feature which uploads the doc file (as content type for template). I successfully deployed the feature and activated it. However, when I move to Document Library and add my content type to it (Settings > Advanced Setting), it says Value does not fall within the range. I can see the doc file in cts > sub-folder and I can also see it when I click on New button on my document library. However, when I download that file, Word says the document is corrupted. Any idea why?
发布评论
评论(1)
这是由 Office 信任中心设置引起的。您必须修改信任中心设置才能明确信任 SharePoint 网站。您还必须分别为每个 Office 应用程序执行此操作。您基本上输入“http://server”地址作为受信任的网络位置。之后,该文档应该可以正确打开。
This is caused by the Office trust center settings. You have to modify your Trust Center settings to explicitly trust the SharePoint site. You also have to do it for each of the Office applications individually. You basically enter the "http://server" address as a trusted network location. After that, the document should open properly.