Click here to Skip to main content
14,836,169 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have developed application in visual studio 2005 and office 2003, which uses Microsoft Office Spreadsheet Component, AxMicrosoft.Office.Interop.Owc11.AxSpreadsheet

I deployed my app on win 7 (32 bit) and office 2010 (32 bit). So to make it work I had to install office 2003 web components add on (owc11.exe) on the win 7 (32 bit) PC. So it worked very well.

But now I deployed my app on win 7 (64 bit) and office 2010 (64 bit). I installed same owc11.exe on this machine but its not working ??

What should be the solution to make it work ? How to make it compatible with office 2010 , 64 bit?

Or any other solution ??
Posted

You can NOT mix 32 and 64-bit code in the same process. When you installed the 32-bit OWC11 components, that's exactly what you tried to do.

You really have no choice but to abandon OWC. There is no 64-bit version and there are no plans to develop the library any further. This was back in 2007(?)...

The only replacement for what you're doing, from MS, that I know of would be Excel Services.

You can read more here[^].
   
SQL
solved. I changed the platform from "Any CPU" to "x86" for entire solution. It worked very well.

Method -

Right click on solution -> Properties -> configuration Properties -> configuration manager -> Active Solution Platform -> change Any CPU to new and then select X86
   
Comments
Dave Kreskowiak 22-Oct-13 0:37am
   
That's nice and all but it isn't a viable solution to the problem asyou described it. You specifically said you were using 64-bit Office. If this solution works for you, you are indeed not using 64-bit Office, but 32-bit.

In either case, my recommendation still stands as OWC is a technology that was killed off 6 years ago. Deploying a new application based on that dependency is wreckless on your part and locks your customers into a path that forces them to abandon your application if they deploy future versions of Office.

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



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