Debug & run microsoft word 2010 addin in office 2007


I'm currently developing a 2010 word addin and it runs well using office 2010. However I also need this addin to be able to debug & run in office 2007, is there any way to do it?

In this 2010 word add-in I already target the .Net framework 4.0

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

If you embed the PIA i.e. in the reference properties for the interops (Microsoft.Office.Interop.Word, Office etc), set the Embed Interop Type property to True then the add-in will also work when installed on an Office 2007 machine. You will need to test it thoroughly as there are 1 or 2 minor incompatibilties between the 2 versions. To debug on a development machine with Office 2007 installed, go to the project properties' debug tab in Visual Studio, select Start External Program and browse to Winword.exe in the Program Files folder for Office 2007.

Hope that helps.

Xenacode Ltd

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
One more alternative is to use .Net Instrumentation techniques. Make use of Diagnostics.debugger.break() statement to start debugging wherever you want. Make sure that you have attached your execution to a process as mentioned in above answer.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Development

From novice to tech pro — start learning today.