![]() in References with yellow-triangle-mark THEN remove it first.Īfter that second step will totally work: using Excel= Īnd finally as a third step you can create Excel object by Excel.Application xlApp = new Excel.Application(). There, change Copy Local to True, and the referenced dll should now be copied to your output directory, meaning the file will be found and the program should work. For higher version you can add assembly by going into COM tab of add-reference windows and add Microsoft Excel Object Library. Select your reference to .dll and press F4 to open the Properties menu. If you don't find anything like THEN may be office not installed OR you have Office 2013 or later. If list doesn't shows the desire version then you may have another vision of Office with Excel installed. Then add reference to of the version you need.Ī. The first step will work if you have Office(Excel) Installed in your PC. ![]() Add reference to Excel Interop Library(Assembly).Correct procedure to use Excel in C# Projects is: ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |