当我们使用第三方工具与Azure DevOps Server集成时,除了Rest Api接口之外,COM组件也是一种常用的工具,COM组件经常用在office类型的应用软件中,例如Excel和WPS等,本文主要介绍在WPS Office中如何按照COM组件。如果需要查看如何使用COM组件连接TFS服务器,可以参考微软文档(https://docs.microsoft.com/en-us/azure/devops/boards/backlogs/office/track-work?view=azure-devops&tabs=open-excel&WT.mc_id=DT-MVP-5001330)
需要从微软官方或者内网中下载并安装Azure DevOps Office Integration 2019;在这个工具的安装过程中,系统将对应的工具包文件复制到了这个目录中:C:\Program Files\Common Files\microsoft shared\Team Foundation Server\16.0
在wps office 2021版本中,安装了TFS的Office插件(方法如下图)后,会自动增加一个注册表键 "TFCOfficeShim.Connect.3"="" ,需要将其修改为"TFCOfficeShim.Connect.16"=""
在wps中添加com组件,添加成功后,可能不会在组件列表中不会出现tfs的组件名称,可以重新打开wps office
下面是注册表对应的配置,你可以将下面的内容导入到注册表中: Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\SOFTWARE\kingsoft\Office\ET\AddinsWL] "V8Test.Helper"="" "iSignatureWord.WordApp"="" "iWebOffice2009.OfficeAddins"="" "NTKO.SecHandSignAddin"="" "NTKO.SecSignSvrAddin"="" "DESSeal.DOAddin"=">4.2.9.0" "AztSiePlugin.Connect"="" "ZSExcelAddin.ExcelAddin"="" "UTCESealAddin.forExcel"="" "SepSPMSOA.CWord"="" "SepMSOA.CWord"="" "OfficeAddin.CWord"="" "UFIDA.U9.OBA.ExcelAddInLoader"="" "iSignatureOffice360"="PR 10: merge to branch 1.0.0.136" "ESClient10.Connect"="" "ZZBCExcelAddinLib.BCExcelClientAddin"="" "XlsTable.XlsConnection"="" "WbOffice.OfficeAddin"="" "EXCELTOOL.Connect"="" "CBOfficePlugin.CBExcelAddin.1"="" "EDCAddin.EDCEntry"="" "OfficePrintAddin.Connect"="" "ExcelAddin.KSExcelAddin.1"="" "FRComAddInMSEXCEL11.FRComAddInMSEXCEL11.1"="" "悦友软件开发者QQ号码1193891098.Connect"="" "Mindjet.Mm9ExcelLinker.AddIn.5"="" "Mindjet.Mm6ExcelLinker.AddIn.2"="" "Mindjet.Mm10ExcelLinker.AddIn.6"="" "TCSCConv.ExcelAddinDesigner"="" "FRComAddInMSEXCEL9.FRComAddInMSEXCEL9.1"="" "FRComAddInMSEXCEL10.FRComAddInMSEXCEL10.1"="" "PXCOfficeAddin4.Addin"="" "ExcelTDM.TDMAddin"="" "Adobe.Contribute.OfficePlugin"="" "CopyFormatFromExcel.FormatInExcel"="" "OfficeMenu.ExcelMenu"="" "dwoffice.dsrExcel"="" "PXCOfficeAddin5.Addin"="" "NXPLiteAddIn3.AddIn"="" "SixSQStat.Connect"="" "CMOfficeAddin.Connect"="" "PtouchAddin50.ComAddinExcel"="" "Hyperion.CommonAddin"="" "ExcelBox.BoxConnect"="" "Kingdee.BOS.Excel.AddIn"="" "TFCOfficeShim.Connect.3"="" "WDF.Addin"="" "SmartbiExcelAddIn.ExcelAddin"="" "BJCAExcelBtn.ExcelBtn"="" "FactSet.OfficeAddin.1"="" "DSM_ETAddin.DSM_ETAddin"="" "prjAddin.Office_Addin"="" "Expense"="" "SignAddin.Sign"="" "OdfExcelAddin.Connect"="" "TFCOfficeShim.Connect.16"=""
如果需要,你还可以从微软Azure DevOps Server 的在线文档,查询更多的权威资料,也欢迎通过下面的联系方式与我沟通,相互学习,相互提高!
https://www.cnblogs.com/danzhang
Azure DevOps MVP 张洪君