Excel中的自定义加载项在分辨率更改时冻结Excel。 [英] Custom add-in in Excel freezes Excel when resolution changes.

查看:147
本文介绍了Excel中的自定义加载项在分辨率更改时冻结Excel。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好!


我正在开发一个Excel加载项,发现一个奇怪的错误(?),通过Visual Studio自己的调试会话很难调试。 / p>

情况:


Excel加载项已安装并正常运行。用户可以插入外接显示器,加入Live Meeting会话或以其他方式更改屏幕分辨率。


问题:


屏幕更新后一切,Excel真的很慢,必须通过任务管理器杀死。重新启动Excel后,加载项将以新分辨率正常工作。如果禁用加载项,则不会发生此问题。


文件通常通过SharePoint文档库打开。该加载项与SharePoint 2010环境进行通信,并从文档库中提取信息,但仅在文件加载时提取。之后,在保存
Excel之前,它不再连接到SharePoint。 


以前有人见过这样的东西吗?这是怎么回事??最重要的是,如何解决这个问题?


问候,

Sö ren 

解决方案

您好Soren,


您的Excel版本是什么,Excel加载项的类型是什么?我之前没有遇到过这个问题。


您可以采取以下措施来确定问题是否可以避免:


如何安装其他机器上的加载项?


尝试将ScreenUpdating属性设置为false。


希望这可以帮助您或多或少。


最诚挚的问候,


Hello!

I'm developing an Excel add-in and found a strange bug (?) that is really difficult to debug via Visual Studio's own debug session.

Situation:

Excel add-in is installed and running normally. User either plugs in an external monitor, join a Live Meeting session or otherwise changes the resolution of the screen.

Problem:

After screen has updated everything, Excel is really slow and has to be killed via the Task Manager. After restart of Excel, the add-in works normally in new resolution. If the add-in is disabled, the problem does not occur.

Files are usually opened through a SharePoint Document Library. The add-in talks to a SharePoint 2010 environment, and fetches information from a document library, but only on file load. After that, it does not connect to SharePoint any more, before saving the Excel. 

Has anybody seen anything like this before? What's going on?? And most important, how to fix this?

Greetings,
Sören 

解决方案

Hi Soren,

What is the version of your Excel and what is the type of the Excel Add-In? I haven't encountered the problem before.

You can take the following actions to see whether the problem can be avoided:

How about installing the Add-In on the other machines?

Try to set the ScreenUpdating property to be false.

Hope this can help you more or less.

Best Regards,


这篇关于Excel中的自定义加载项在分辨率更改时冻结Excel。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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