Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / VS Tools for Office / May 2008

Tip: Looking for answers? Try searching our database.

VSTO and worksheet formulae

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
cendter@gmail.com - 14 May 2008 21:53 GMT
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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.