Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Need to support mutiple Excel versions from C#

I hope I am posting this in the right news group. If not I apologize.

I need to write a C# application that supports multiple versions of Excel;
2000 and up. I have written code to support a single version of Excel
before, but have never had to support multiple versions. Based on what I
have found online to this point, I believe these are my options.

- Write code for each version by branching the code. Microsoft apparently
does no support writing code to handle multiple applications and strongy
recommends coding/building for each version individually.

- Write code to the lowest supported version and test against other
supported versions. This may work as long as versy basic functionality is
used and nothing specific to newer versions or dropped in newer versions is
used.

- Use Assembly Binding Redirect. I have never used this before and don't
know if it is possible. In my research I found the Office 2007 apparanently
allows for redirection to Office 2003. Is this a viable solution? Is it
possible to allow for multiple redirections not knowing which version a user
will have?

I know the first option should work, but it is something I would like to
avoid. Is the third option viable. Do I have any other options?

At this point I don't know if I coding against framework 1.1 or 2.0. Are
there any limitations supporting multiple versions working with either
framework?

Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Need to support mutiple Excel versions from C#

You may get an answer here, but I would
Look down the left side of the communities web page (where it appears you
are posting) and see the Office Developer groups.

Post in those groups. This group is aimed primarily at using VBA as a macro
language in Excel.

--
Regards,
Tom Ogilvy


"John Mercure" wrote:

I hope I am posting this in the right news group. If not I apologize.

I need to write a C# application that supports multiple versions of Excel;
2000 and up. I have written code to support a single version of Excel
before, but have never had to support multiple versions. Based on what I
have found online to this point, I believe these are my options.

- Write code for each version by branching the code. Microsoft apparently
does no support writing code to handle multiple applications and strongy
recommends coding/building for each version individually.

- Write code to the lowest supported version and test against other
supported versions. This may work as long as versy basic functionality is
used and nothing specific to newer versions or dropped in newer versions is
used.

- Use Assembly Binding Redirect. I have never used this before and don't
know if it is possible. In my research I found the Office 2007 apparanently
allows for redirection to Office 2003. Is this a viable solution? Is it
possible to allow for multiple redirections not knowing which version a user
will have?

I know the first option should work, but it is something I would like to
avoid. Is the third option viable. Do I have any other options?

At this point I don't know if I coding against framework 1.1 or 2.0. Are
there any limitations supporting multiple versions working with either
framework?

Thanks.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Running mutiple excel sheets on mutiple computers Lost Excel Discussion (Misc queries) 3 January 16th 09 12:32 AM
Need excel to do mutiple functions per row petlover Excel Discussion (Misc queries) 1 June 14th 07 08:02 PM
Does not support automation or does not support expected interface Maverick Excel Programming 0 September 21st 06 09:31 AM
Question on functions various Excel versions support TP Excel Worksheet Functions 3 July 20th 06 02:14 PM
Please include fonts from previous versions ('98) in new versions JJBQ Excel Discussion (Misc queries) 3 October 8th 05 07:19 PM


All times are GMT +1. The time now is 11:23 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"