【问题标题】:clicking right mouse button on upper-left corner crashes application while protection is on在保护开启时单击左上角的鼠标右键会导致应用程序崩溃
【发布时间】:2015-08-21 03:24:42
【问题描述】:

我创建了一个使用保护的 excel 插件。

当我获得保护激活时,当我先用鼠标左键(选择所有 Excel 单元格)然后用鼠标右键单击左上角(选择所有单元格)时,excel 会崩溃。应该有一个上下文菜单,而不是 excel 崩溃。

如何解决这个问题?

这是我的保护命令:

getWorksheet().Protect(Properties.Settings.Default.worksheetPassword, false, true, false, true, true, true, true, false, false, true, false, false, true, true, true);

【问题讨论】:

  • 我找到了!将第十个布尔值设置为 false 解决了问题;这是'AllowInsertingHyperlinks(true 允许用户在工作表上插入超链接。)'。对于我的应用程序,不允许超链接是没有问题的。

标签: c# excel crash


【解决方案1】:

我找到了!将第十个布尔值设置为 false 解决了问题;这是“AllowInsertingHyperlinks(true 允许用户在工作表上插入超链接。)”。对于我的应用程序,不允许超链接是没有问题的。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-12-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-01-29
    • 1970-01-01
    相关资源
    最近更新 更多