Question : interop.microsoft.office.c<wbr />ore.dll.

hi
what are the files need to be
Navigate to COM tab, and find and select Microsoft Excel 12 Object Library (if you use Office 2007), click OK. (If you use Office 2003, the name should be Microsoft Excel 11 Object Library)

4.       Add the following codes to import Excel NameSpace.

1.     Created a C# Empty project named CSVToExcel. Added a class file named CSVToExcel.cs to the project.

2.       In the Sulotion Explorer Window, right clicked  the CSVToExcel project, clicked Add Reference. Then Add Reference Dialog pops up.

3.   Navigate to COM tab, and find and select Microsoft Excel 12 Object Library (if you use Office 2007), click OK. (If you use Office 2003, the name should be Microsoft Excel 11 Object Library)

Code Block
using Excel = Microsoft.Office.Interop.Excel;
i did above and i did rebuild all solution.  but it did not create interop.microsoft.office.core.dll.
please let me know am using .net framework 1.1 with c# 1.1
vs 2003. office 2007 , office pias 2007 on xp platform.



thanks,

Answer : interop.microsoft.office.c<wbr />ore.dll.

For Ofice 2003,  Microsoft Office 11.0 Object Library PIAS 11.0
For Office 2007, Microsoft Ofice 12.0 Object Library ,PIAS 12.0
When i reference Microsoft Office 11.0 Object Library , i need to set  Copy Local of Microsoft.Office.Core to true, inorder to create dll localyi ..e my out put folder.
but Microsoft Office 10.0 ( older version of Office ), by default it has setting Copy Local of Microsoft.Office.Core to true. So need not change any thing, when i do rebuild all it creats dll in "output" folder.
Also , with  Microsoft Office 11.0 Object Library and later version of Microsoft Office Object Library it creates Office.dll instead of Interop.Microsoft.Office.Core.dll.

Random Solutions  
 
programming4us programming4us