In visual Studio 2010 Console application, I added a reference to Microsoft.Office.Interop.Excel.dll from C:\Program Files (x86)\Microsoft Visual Studio 10.0\Visual Studio Tools for Office\PIA\Office14\Microsoft.Office.Interop.Excel.dll and my program to open and write into an excel file works fine. But when I run this .exe on another machine that doesn't have Microsoft Office or visual studio, it throws.
One option is to install PIA on the machines I want my program to run but I want it to be self contained. What is the best way?