Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB8.0 VB.NET
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 19-Mar-12 22:39pm

1 solution

Rate this: bad
good
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.
  Permalink  
Comments
Alan Tuscano at 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
0 OriginalGriff 565
1 Maciej Los 319
2 Richard MacCutchan 220
3 BillWoodruff 164
4 Mathew Soji 160
0 OriginalGriff 8,654
1 Sergey Alexandrovich Kryukov 7,407
2 DamithSL 5,639
3 Maciej Los 5,229
4 Manas Bhardwaj 4,986


Advertise | Privacy | Mobile
Web03 | 2.8.1411023.1 | Last Updated 20 Mar 2012
Copyright © CodeProject, 1999-2014
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