文档属性(服务器) [英] Document Properties (server)
问题描述
Hello Guys,
再次 - 带有扭曲问题的错误:)
最近我一直在构建自动加载功能,这会将特定文件加载到SharePoint中,但会遇到问题:
每次此人从sharepoint下载该文件时,该文件都具有名为文档属性 - 服务器的附加属性。并且有一个名为Date的属性和名为Title的属性。当我将文件加载回SharePoint时,我使用以下方法设置我的自定义日期属性:
动态属性;
properties = WorkbookObject.CustomDocumentProperties;
properties.Add( Date,
false ,
Microsoft.Office.Core.MsoDocProperties.msoPropertyTypeDate,
DateTime.Now,Type.Missing);
所以现在我有两个名为Date的属性。
有谁知道如何从MS Office文件中删除服务器类型属性?
我知道你可以通过点击左上角的MS Office inco来手动完成 - >准备 - >检查文档 - >选中文档属性和个人信息 - >上的勾号。 [按钮]检查 - > [按钮]全部删除....
但是我不想让用户一直这样...如何以编程方式进行操作?
非常感谢你们!
Modestas
使用CustomDocumentProperties.Add方法 [ ^ ]
Workbookobject.customdocumentproperties.add = mode = hold LinkToContent:= False,Type:= msoPropertyTypeNumber,Value:= 1000
Hello Guys,
Again - buggin with the "twisted" problem :)
Recently I have been building automatic load function, that would load specific files into SharePoint, but bumped into issue:
Each time the person download the file from sharepoint that file has additional properties called "Document Properties - Server". And there is a property called "Date" and property called "Title". When I load the files back into SharePoint I am setting my Custom "Date" property using this:
dynamic properties;
properties = WorkbookObject.CustomDocumentProperties;
properties.Add("Date",
false,
Microsoft.Office.Core.MsoDocProperties.msoPropertyTypeDate,
DateTime.Now, Type.Missing);
So now I am having 2 properties with name "Date".
Does anyone know how to get rid of the "server" type properties from MS Office file?
I know that manually you can do by clicking on MS Office inco in the top-left corner --> Prepare --> Inspect Document --> Check the tick on "Document Properties and Personal Information" --> [button] Inspect --> [button] Remove All....
But I don''t want the user to it all the time... how to do it programatically?
Thanks a lot guys!
Modestas
Use CustomDocumentProperties.Add method[^]
Workbookobject.customdocumentproperties.add="" mode="hold" LinkToContent:=False, Type:=msoPropertyTypeNumber, Value:=1000
这篇关于文档属性(服务器)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!