MS Excel 12.0 Object Library not found in user PC
Posted on 2010-09-20
I have a program developed in Visual Studio 2005. I have MS office 2007 installed in my XP computer, and I add reference to MS Excel 12.0 Object Library.
The program runs fine at my computer, however an error message pops up on users PC, which has MS office 2003 only. The error message states MS Excel 220.127.116.11 Object Library is not found.
Is there anyway to work around this?
I did some research and some ppl talked about detecting the assembly and add the reference at runtime. Is there any code for reference?