Click here to Skip to main content
12,999,010 members (46,935 online)
Rate this:
Please Sign up or sign in to vote.
See more:

I created a application, that generates a Excel Report. The Available Excel version in the PC I used is Excel 2002 (MS Office 2002).

In UAT, the PC used uses a MS Office 2007 (excel 2007) version, and my apps is having error with the InterOp Assembly. What will I need to do? please guide me through.

Posted 19-Mar-12 21:39pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

The problem is that every version of Excel has it's own version of the interop assembly.

You could bind the interop at runtime, or you could create something along the lines of a CSV file. Note, though, that the CSV doesn't hold formatting information, so if you're looking for something which will let you handle more formatting, you can try saving as an XML spreadsheet. This option does take a good bit more work then a CSV, but I've had better success with it then trying to bind the interop at runtime.
Alan Tuscano 20-Mar-12 20:09pm
Hi Bert,

Actually, its a spreadsheet.

I've think about it, though haven't tried yet, I downloaded oxppia, its the assembly for Office 2002. I will try to install this assembly in the test pc with Windows 7 and Office 2007 environment.

Let you know if i'm successfull, otherwise, I will recompile my project using Office 2007.

Thanks Bert.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170622.1 | Last Updated 20 Mar 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100