开发者

Running an XLL outside Excel?

开发者 https://www.devze.com 2022-12-27 12:47 出处:网络
I know this question has been posted before... but I haven\'t found any answer yet (besides from the generic answers about how XLL are actually D开发者_运维问答LL, etc).

I know this question has been posted before... but I haven't found any answer yet (besides from the generic answers about how XLL are actually D开发者_运维问答LL, etc). Has anybody out there been successful calling a XLL from say C# (using DllImport) without having to load Excel with the XLL loaded as an addin?

Basically, you would have to create a special XLCALL32.DLL that simulates the Excel host. It sounds like a lot of work... has anybody done this? Or seen a product to do it?

Thanks


You're on the right track with needing to create your own XLCall32.dll and simulate Excel. That's non-trivial given what you can do via the interface that XLLs use to talk to Excel. It becomes easier the less of Excel that you need to use from within your XLL, so I guess if you have a known selection of XLLs that you need to use and you know what bits of Excel they access via the XLL interface then you can just replace the bits you need...

Why do you want to do this?


Evaluating this XLL+ library (which is not free, running on trial atm) which hels to "mock"/"simulate" XLCALC32.dll calls (as it only needs 2 methods from it as far as i understand). Will let you know if I get somewhere.

0

精彩评论

暂无评论...
验证码 换一张
取 消