Excel插件安装失败:无法解析属性“type”的值

【问题描述】

第三方给Excel插件安装包如图一,我没做过Excel插件安装包,估计就是调用VSTOInstaller.exe

安装时失败,提示如下

ERROR message " The value of the property 'type' cannot be parsed. The error is: Could not load file or assembly 'Microsoft.Office.BusinessApplications.Fba,Version=14.0.0.0,Culture=nutral, PublicKeyToken=71e9ce111e9429c' or one of its dependencies. The system cannot find the file specified. (C:\Program Files\Common Files\Microsoft Shared\VSTO\10.0\VSTOInstaller.exe.Config Line 10)

【解决方法】

  1. 定位置插件文件夹
    C:\Program Files (x86)\Common Files\Microsoft shared\VSTO\10.0 or C:\Program Files\Common Files\Microsoft shared\VSTO\10.0.
  2. 将VSTOInstaller.exe.config重命名,比如VSTOInstaller.exe.config.old.
  3. 重新安装成功。

【运行结果】

安装后插件目录:

正常运行界面:

  • 3
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
你可以尝试使用 `vue-xlsx-template` 插件来实现 Vue 的在线预览 Excel 功能。 `vue-xlsx-template` 是一个基于 Vue 的 Excel 文件解析和导出插件,它可以让你在 Vue 应用中轻松地读取和导出 Excel 文件。你可以使用它来实现在线预览 Excel 文件的功能。 首先,你需要在你的 Vue 项目中安装 `vue-xlsx-template` 插件。你可以使用 npm 或者 yarn 来进行安装: ```bash npm install vue-xlsx-template ``` 然后,在你的 Vue 组件中引入和使用 `vue-xlsx-template`: ```javascript <template> <div> <!-- 用于上传 Excel 文件的 input --> <input type="file" @change="handleFileUpload" accept=".xlsx" /> <!-- 用于展示 Excel 内容的表格 --> <table> <tr v-for="row in excelData" :key="row.index"> <td v-for="cell in row.cells" :key="cell.index"> {{ cell.value }} </td> </tr> </table> </div> </template> <script> import Vue from 'vue'; import VueXlsxTemplate from 'vue-xlsx-template'; export default { data() { return { excelData: [], }; }, methods: { handleFileUpload(event) { const file = event.target.files[0]; VueXlsxTemplate.read(file).then((data) => { this.excelData = data; }); }, }, }; </script> ``` 上面的代码中,我们通过 `input` 标签让用户选择要上传的 Excel 文件。然后使用 `VueXlsxTemplate.read` 方法读取并解析该文件,将解析后的数据赋给 `excelData` 变量。最后,我们在表格中展示了 Excel 文件的内容。 这样,用户就可以选择并上传 Excel 文件,在页面上实现了在线预览 Excel 文件的功能。 希望对你有所帮助!如果有任何问题,请随时提问。
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值