Override PenHelper failed error behavior or reporting #692
-
Is there a way to stop ExcelDna reporting on "IsInFormulaEditMode - PenHelper failed" ? Not sure how it happens, but I am queueing a lot of macro delegates though |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
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. 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 context. |
Beta Was this translation helpful? Give feedback.
-
@emphasis87 |
Beta Was this translation helpful? Give feedback.
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:
But I'd prefer to figure out why that call is failing in your con…