Skip to content

Override PenHelper failed error behavior or reporting #692

Answered by govert
emphasis87 asked this question in Q&A
Discussion options

You must be logged in to vote

The error you see is an unexpected error - I would be interested if you have a reproducible way to get that error to pop up that you can share.
What is the exact Excel-DNA version you are using? We did change some of the relevant implementation (I think in version 1.7) to try to make it more robust.

You can suppress the default logging behaviour (which is to pop up the Log Display dialog for any error) by adding a .config file to your add-in:

<configuration>
 <system.diagnostics>
    <sources>
      <source name="ExcelDna.Integration" switchValue="Off">
      </source>
    </sources>
  </system.diagnostics>
</configuration>

But I'd prefer to figure out why that call is failing in your con…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@emphasis87
Comment options

@govert
Comment options

Answer selected by emphasis87
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants