在SharePoint站点之间共存文件但SharePoint修改旧版Office文件! [英] Comapring Files between SharePoint Sites but SharePoint Modifies older Office files!

查看:88
本文介绍了在SharePoint站点之间共存文件但SharePoint修改旧版Office文件!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个应用程序来比较从旧的2007网站迁移到我们新的2016网站的文件,以验证迁移是否成功(我们遇到了各种问题,所以现在我我想在删除旧网站之前确保迁移工作
。 


我正在比较修改日期和文件大小。请注意,我们使用CSOM迁移文件,包括所有版本。但是,我注意到许多文件的文件大小不同,但打开时它们似乎完全相同。简而言之,
结果证明SharePoint修改了某些Office文件(主要是Office 2003和2007 Word和Excel文件)。请在此问题上查看此主题:


https://social.technet.microsoft.com/Forums/ie/en-US/0c5cbd50-9c84-49e6-87e6-5a86b387dee1/sharepoint -2010-modification-office-files?forum = onlineservicessharepoint


这实际上是我第一次能够找到相关信息。 


我想知道的是,如果有人能够想到一种方法,我可以在比较中考虑这些变化。例如,修改可能会将文件更改一定百分比或金额 - 我已经完成了一些数据收集,并且似乎没有
可能是任何单个数字或百分比 - 也许不同类型的文件是修改了不同的金额?即,2003年.doc文件被这个百分比,2007 .docx文件修改了这个百分比等等。或者,也许某种方式以编程方式检查是否已经进行了那些
修改(在VS 2017中使用.Net C#)。  


现在,我有点卡住了。我一直在使用几千字节的容差,并手动验证文件,但我真的希望能够完全自动化。 

解决方案

如果doc / docx转换为raw - > OCR - > setup pass param - >利润是多少?

I am working on an application to compare the files that have been migrated from our old 2007 site to our new 2016 site in order to verify that the migration was successful (we've had various issues, so now I'm wanting to make sure the migration has worked before dropping the old site). 

I am comparing the modified date and the file size. Note, we are using CSOM to migrate the files, including all versions. However, I noticed that many of the files had different file sizes, but they seemed to be identical when opened. Long story short, it turns out that SharePoint modifies certain Office files (seems to be Office 2003 and 2007 Word and Excel files, mainly). Please see this thread on the issue:

https://social.technet.microsoft.com/Forums/ie/en-US/0c5cbd50-9c84-49e6-87e6-5a86b387dee1/sharepoint-2010-modifying-office-files?forum=onlineservicessharepoint

That is actually the first I've been able to find information on it. 

What I'm wondering is if anyone can think of a way that I can take these changes into account in the comparison. Such as, maybe the modifications change the file by a certain percentage, or amount -I've done some data gathering, and there doesn't seem to be any single number or percentage though- maybe different types of files are modified by a different amount? I.e., 2003 .doc files are modified by this percentage, 2007 .docx files by that percentage, etc. Or, maybe some way to programatically check if those modifications have been made (using .Net C# in VS 2017). 

Right now, I'm kind of stuck. I have been using a tolerance of a few kilobytes difference, and manually verifying files over that, but I'd really like to be able to completely automate this. 

解决方案

if doc / docx convert to raw -> OCR -> setup pass param -> profit?


这篇关于在SharePoint站点之间共存文件但SharePoint修改旧版Office文件!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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