none
A Visual Stadio2019 Bug RRS feed

  • Question

  • When I try to read the message in Excel,I Add A Reference by choose the Excel.exe directly.But when I run the code in vs2019,it print "Could not load file or assembly 'Interop.Microsoft.Office.Interop.Excel'".Then I tried to run it in vs2017,it run well.

    why?

    Wednesday, July 31, 2019 10:55 AM

All replies

  • Hello,

    If you believe this to be a bug then report it in Visual Studio upper right hand corner of the IDE. I would not add a reference to the executable even if it worked in VS2017, you should add a reference to Microsoft.Office.Interop.Excel



    Please remember to mark the replies as answers if they help and unmarked them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.

    NuGet BaseConnectionLibrary for database connections.

    StackOverFlow
    profile for Karen Payne on Stack Exchange

    Wednesday, July 31, 2019 1:43 PM
    Moderator