Upgrading to Office 2007... will it break my .NET programs?

coder_t2

[H]ard|Gawd
Joined
Dec 31, 2005
Messages
1,166
So my work computer is going to be upgraded from Office 2003 to 2007 on Monday. However, I run automated reports using Excel and C# in .Net. Will upgrading to 2007 break these programs? And will VSTO be able to handle it properly? I download VSTO SE from Microsoft website, and I believe it includes support for Office 2007, but I can't find the link again to check. Plus you just never know. If this break the programs, I am totally out of commission, which is really bad. Thanks.
 
Can't you get a test environment going, whether through another physical box or a virtual instance?
 
It's been like pulling teeth just to get Office 2007. I doubt they will actually take the time to install it on one machine, and then test it, and then install it on another. I was wondering if anyone had any experience with this yet, or if they have read about it.
 
Not sure who "they" are, but what's stopping you from creating a local VMware instance as a sandbox for testing stuff like this out? You sound like you've got more than enough knowledge of whatever .Net apps need testing, and such tests should not take long to execute. If anything, such tests are in the interest of the client/company, and should be emphasized as such.
 
You have to test it for yourself. There are no shortcuts.
 
Alrighty then. I was hoping to maybe get a clear cut Yes or No. But doesn't look like that is happening. By "they" I mean our IT department, as in the people who handle the software distribution, getting new computers, etc. It's just been a whole debacle getting an upgraded to 2007. I got a whole new computer faster! And they didn't even bother installing 2007. They are mailing the discs to the office, but they are having a local IT person install it. As far as installing it on other machine first, I am not really sure how enterprise licensing works and if that would "use" a license. But I guess it may be my only option.
 
As far as installing it on other machine first, I am not really sure how enterprise licensing works and if that would "use" a license. But I guess it may be my only option.

You could install the 120 day trial version of Office and/or Windows for testing purposes.
 
Our upgrade to 2007 was a nightmare, we never really finished it. We found several bugs on scripts and stuff that woudln't run in 2007, we even re-wrote many of them and they had bugs with their api's. I think we filed a total of 3 bugs 2 years ago and have yet to hear back on them if they're fixed, sorta seemed like pretty major bugs. Pointers were returning the wrong objects in several spots.
 
hmm, could you have 2007 and 2003 installed simultaneously? Or is Microsoft retarded and forces you to only have one?
 
From what I've seen concurrency is possible. Though it can create headaches if people use two different Outlook apps for managing a single email account (which is really possible with any email client).

Though this sounds like an implementation question that could be better answered through localized testing, as you'll have better knowledge of the apps, plugins, and typical processes done at your company or client's location.
 
Downloading now, so we shall see. I doubt I will have any issues if both 2003 and 2007 are on the system. But if 2003 is uninstalled maybe. Especially if it takes the interop libraries with it. Was supposed to get it installed yesterday, but apparently not since no one ever contacted me.
 
Downloading now, so we shall see. I doubt I will have any issues if both 2003 and 2007 are on the system. But if 2003 is uninstalled maybe. Especially if it takes the interop libraries with it. Was supposed to get it installed yesterday, but apparently not since no one ever contacted me.

Some of your concerns are why I don't like working with the interop libraries (that and requiring Office to be installed on the machine.) I'm curious though, the reports are generated from an excel file you access via interop? Or the reports are generated from excel files into another excel file?

So my work computer is going to be upgraded from Office 2003 to 2007 on Monday. However, I run automated reports using Excel and C# in .Net. Will upgrading to 2007 break these programs? And will VSTO be able to handle it properly? I download VSTO SE from Microsoft website, and I believe it includes support for Office 2007, but I can't find the link again to check. Plus you just never know. If this break the programs, I am totally out of commission, which is really bad. Thanks.

Actually reading your post again, not sure I got the question right nor how to answer this but... the interops libraries that came with VS2008 Pro work with 2003 and 2007 just fine. Not sur if that helps but who knows.
 
Last edited:
They are generated from a SQL Server database. So SQL Server has all the data, I perform a query to select the data I want and pull it into Excel. And then I can do whatever manipulation in Excel I need. Normally its things to make the data easier you to read. I use pivot tables, sorts, formatting. The key thing is automation, so I can have report run everyday and pull information for the previous day, and format it. It's a great way to save time. If they were done by hand, it would probably take 5 people to all the report I do.
 
They are generated from a SQL Server database. So SQL Server has all the data, I perform a query to select the data I want and pull it into Excel. And then I can do whatever manipulation in Excel I need. Normally its things to make the data easier you to read. I use pivot tables, sorts, formatting. The key thing is automation, so I can have report run everyday and pull information for the previous day, and format it. It's a great way to save time. If they were done by hand, it would probably take 5 people to all the report I do.

I worked with the Office Open XML which does what you're doing only it doesn't rely on interops and excel being installed. Office Open XML standards are the default file formats for Excel 2007. You can even find some libraries that make it even easier to put your database data into Excel 2007. I wouldn't be worried at all and yes, the interops libraries support Excel 2007 in C#.
 
So far so good. All I had to do was change change all the save lines to saveAs so it will save in compatibility mode. Last step is testing my one program that uses word. But it was a pretty painless transition. Interop libraries are online, and easy to download and install. Didn't even need them since they were installed with Office though. Not really sure what 2007 was breaking for other people.
 
Back
Top