Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Excel Functions from C#

Status
Not open for further replies.

briby

Programmer
Apr 24, 2002
13
GB
Hi there
I'm a relative new comer to .net, I have a project that is taking some calculations that are done in a spreadsheet and coding them in c#. No problem I'll just use the Math library I thought ... Except no NORMSDIST and no NORMSINV.

I believe you can access these Excel functions somehow(?!) but am not sure what steps I would need to go through to do this. I would prefer to actually have the code for the functions in c# itself, as I didn't know the consequences of accessing the excel stuff (this functionality is going to be accessed via a web service - if this makes a difference)

Thankyou in advance

Brian
 
Dear Brian,
I couldn't find the functions NORMSDIST and NORMSINV and to use them I had to use a library at Code Project called interop.Excel it's very usefull. Hope it helps u.

 
Thanks for that - I'd found some stuff previously todo with calling the worksheetfunctions but that given me a steer on how to actually get the reference.

I'm still hoping to find some code that'll do it without Excel as obv. I'd rather not have to install it on the web server.

Cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top