PC Review


Reply
Thread Tools Rate Thread

C# Extending Excel

 
 
Joseph M. Newcomer
Guest
Posts: n/a
 
      25th Apr 2007
I've written a couple C# apps, but this question is beyond anything I've done. A friend
called me and asked me if I could help, and while I can help with some of the C# stuff,
the infrastructure is where I have no experience.

Problem statement:

An extension to an Excel spreadsheet written in C#

The extension shall pop up a form and the user interacts with that form

Upon clicking an "Apply" button, or something along these lines, the extension will reach
out and manipulate the Excel spreadsheet in some appropriate fashion. There is currently
issues about whether at this point it changes the spreadsheet and closes the C# extension
window, or allows the user to continue. However, an "undo" is probably not required.

During the interactions, the extension will read values from the spreadsheet, present them
to the user and/or perform computations involving them.

I have some idea how I'd accomplish parts of this using ActiveX and ATL (I'm an MFC
expert) but the desire here is to use C# (more palatable than VB). I have no idea what
the C# equivalent of ActiveX looks like, or even how to start such a project. An
alternative is to write a WinForms app that can be launched from a spreadsheet and
effectively "take as a parameter" some reference that allows it access to the spreadsheet
that launched it.

Suggestions welcome.
joe
Joseph M. Newcomer [MVP]
email: (E-Mail Removed)
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
 
Reply With Quote
 
 
 
 
Nicholas Paldino [.NET/C# MVP]
Guest
Posts: n/a
 
      25th Apr 2007
Joe,

Have you taken a look at the Visual Studio Tools for Office (VSTO)? It
should give you a pretty good foundation from which to start.

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- (E-Mail Removed)

"Joseph M. Newcomer" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I've written a couple C# apps, but this question is beyond anything I've
> done. A friend
> called me and asked me if I could help, and while I can help with some of
> the C# stuff,
> the infrastructure is where I have no experience.
>
> Problem statement:
>
> An extension to an Excel spreadsheet written in C#
>
> The extension shall pop up a form and the user interacts with that form
>
> Upon clicking an "Apply" button, or something along these lines, the
> extension will reach
> out and manipulate the Excel spreadsheet in some appropriate fashion.
> There is currently
> issues about whether at this point it changes the spreadsheet and closes
> the C# extension
> window, or allows the user to continue. However, an "undo" is probably
> not required.
>
> During the interactions, the extension will read values from the
> spreadsheet, present them
> to the user and/or perform computations involving them.
>
> I have some idea how I'd accomplish parts of this using ActiveX and ATL
> (I'm an MFC
> expert) but the desire here is to use C# (more palatable than VB). I have
> no idea what
> the C# equivalent of ActiveX looks like, or even how to start such a
> project. An
> alternative is to write a WinForms app that can be launched from a
> spreadsheet and
> effectively "take as a parameter" some reference that allows it access to
> the spreadsheet
> that launched it.
>
> Suggestions welcome.
> joe
> Joseph M. Newcomer [MVP]
> email: (E-Mail Removed)
> Web: http://www.flounder.com
> MVP Tips: http://www.flounder.com/mvp_tips.htm



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Extending Conditional Formatting in Excel 07 Goldsmack12@gmail.com Microsoft Excel Discussion 1 17th Mar 2008 03:08 AM
Extending objects in Excel 2003 with VBA =?Utf-8?B?cHJvZg==?= Microsoft Excel Programming 0 13th Mar 2007 03:35 PM
Extending Excel with more formulas Andy Wiggins Microsoft Excel Discussion 2 5th Aug 2005 07:22 PM
extending excel named range with vba Hugo & Monique Microsoft Excel Programming 2 31st Jan 2005 06:17 PM
Extending rows in Excel Schizoid Man Microsoft Excel Discussion 2 5th Nov 2004 07:06 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:37 AM.