Hi there,
How can I write a function that is available as a formula on a
worksheet in a VSTO/code behind a sheet solution? I am aware of
automation add-ins but these functions are meant to retrieve data from
a pre-populated object and if I write a simple automation add-in then
the data object would have to be re-created for every function call,
which is slow.
Ideally, I would like my solution to start up with the sheet, attach
to the data source, go and populate the internal data object and then
selectively load certain template workbooks/sheets that have my
formulae in them. As the formulae get executed they access the pre-
populated data object. How can I do this?
Thank you very much,
C.
Andrew Wiles - 21 May 2008 08:24 GMT
I have been involved in the development of an Office 2007 business
intelligence add-in for Excel where we have implemented cell formulae in
conjunction with a VSTO app.
If you are using VS2005 with .Net2.0 and VSTO 2005 SE the answer is no. You
will need to write an automation addin. The difficulty is then how to let the
automation add-in communicate with your VSTO app (you now have 2 apps running
in the same Excel instance).
I beleive that this has changed in VS2008 but I have not had enough time to
install and test this yet.
Regards
Andrew Wiles
iT-Workplace Limited
http://www.it-workplace.com
> Hi there,
>
[quoted text clipped - 14 lines]
>
> C.
Andrei Smolin [Add-in Express] - 29 May 2008 16:57 GMT
Add-in Express allows creating XLL add-ins. This looks like the thing you
need. Note that if you need to show some command bar or Ribbon Controls, you
will also need to create also a COM add-in (in the same assembly).
Regards from Belarus (GMT+2),
Andrei Smolin
Add-in Express Team Leader
www.add-in-express.com
> Hi there,
>
[quoted text clipped - 14 lines]
>
> C.