Excel-DNA RTD 函数被调用两次

问题描述 投票:0回答:0

使用,Excel-DNA,我有

  1. 通用 RTD 服务器类
  2. 使用 XlCall.RTD 调用 RTD 的 UDF

这很好用。但是当我保存工作簿并重新打开工作簿时,RTD ConnectData/CreateTopic 方法在 UDF 之前被调用,然后再次被调用。

这会导致双重调用。我如何确保在工作簿打开时首先触发 UDF,然后进行 RTD 调用。

源代码来自示例:https://github.com/Excel-DNA/Samples/tree/master/RtdClocks/RtdClock-ExcelRtdServer

c# excel-dna rtd
© www.soinside.com 2019 - 2024. All rights reserved.