Click here to Skip to main content
15,889,315 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

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.

Thanks.
Posted

1 solution

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.
 
Share this answer
 
Comments
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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900