简体   繁体   English

命令栏 Myreport excel 不可见

[英]commandbar Myreport excel not visible

I am using microsoft.office.interop.excel to open an excel document.我正在使用 microsoft.office.interop.excel 打开 excel 文档。 The document opens correctly but the myReport menu which is a complement installed for excel does not appear in the excel menu bar.文档正确打开,但为 excel 安装的补充文件 myReport 菜单未出现在 excel 菜单栏中。 If I open this same document in the classic way, then the menu appears fine.如果我以经典方式打开同一个文档,则菜单看起来很好。 Do you know that it is the command that would allow me to activate the menu of this complement.你知道是这个命令可以让我激活这个补充的菜单吗?

execl = new _ExcelWork.Application();
Workbook wb;
Worksheet ws;
wb = execl.Workbooks.Open(fichier.FullName);

After several research here is how to counter this behavior.经过多次研究,这里是如何应对这种行为的。 You have to browse the add list and change the installed property to false then reset it to true.您必须浏览添加列表并将已安装属性更改为 false,然后将其重置为 true。

XLS1.AddIns.Installed = false;
XLS1.AddIns.Installed = true;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM