C# Excel Automation Add-In Optional Parameters Slow

M

Matthew Wieder

We are writing an Excel "Automation Add-In' (not a COM Add-In) in C#. A few
of the functions that we are exposing as Cell formulas take a number of
optional parameters. By some limitation, optional paramteres must be of type
Object instead of the type desired. The cost of taking the object and then
converting it to the desired type is proving incredibly expensive. Just that
process can take a minute for a few thousand calls as opposed to 8 seconds
with an xll. Short of reverting to an xll, is there some way to speed this
up?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top