Microsoft office excel tools

I am trying to get a C# Windows Forms project running in

However, I am getting the following exception on this line:

xlApp = new ExcelApi.Application();

00024500-0000-0000-C000-000000000046

After doing some investigation, I noticed that one of the references is not properly installed. It shows a yellow triangle next to the name. However I cannot for the life of me figure out how to install this package. I’ve tried Adding Reference and using Nuget but the package does not appear anywhere and there are no download sources online.

microsoft.office.tools.excel

Does anyone have any idea how I can get this to work?


Version info:

  • Visual Studio Enterprise 2017 Version 15.6.4
  • Microsoft .NET Framework Version 4.7.03.062

Excel Tools VBA – надстройка автоматизации рутинных и монотонных операций в MS Excel

Авторские права 2015-2020 от авторов VBATools

Эта программа является свободным программным обеспечением.

Вы можете распространять его и / или изменять в соответствии с условиями GNU General Public License, опубликованной фондом свободного программного обеспечения (Free Software Foundation)

Эта программа распространяется в надежде, что она будет полезна, но без каких-либо гарантий. Даже без подразумеваемой гарантии товарного состояния или пригодности для определенной цели. См. GNU General Public License для более подробной информации.

С Уважением VBATools.ru


Excel Tools VBA-add-in for automating routine and monotonous operations in MS Excel

Copyright 2015-2020 by the contributors VBATools

This program is free software.

You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the (Free Software Foundation)

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY. Without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

With Respect VBATools.ru


RRS feed

  • Remove From My Forums
  • Вопрос

  • Can someone tell the difference between Microsoft.Office.Tools.Excel and Microsoft.office.Interop.Excel as these looks quite similar in usage but they have been explicitly defined everywhere.

    • Перемещено
      Emi ZhangMicrosoft contingent staff
      4 июля 2017 г. 6:24
      Move

Все ответы

  • Hi,

    This is the forum to discuss questions and feedback for Microsoft Excel features, I’ll move your question to the MSDN forum for Excel

    https://social.msdn.microsoft.com/Forums/en-US/home?forum=exceldev

    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.


    Regards,
    Emi Zhang
    TechNet Community Support

    Please remember to mark the replies as answers if they helped.
    If you have feedback for TechNet Subscriber Support, contact
    tnmff@microsoft.com.

    • Изменено
      Terry Xu — MSFT
      7 июля 2017 г. 2:09
  • Microsoft.Office.Interop.Excel is a Primary Interop Assembly (PIA) for the Excel COM object model. So it is the .NET wrapper around the Excel COM object model which is used by managed languages to access the Excel COM object model, but doesn’t add anything
    extra to the COM object model. It allows you to reference Worksheet or Range objects from .NET, and you have access to the same object model as you would use from VBA.

    Microsoft.Office.Tools.Excel is a part of the Visual Studio Tools for Office (VSTO) library that was developed by the Microsoft developer division. VSTO is an extension to Office that offers extra high-level classes that are built on top of the COM object
    model. These extra classes implement binding to ranges and tables, wrappers around names ranges etc. Since VSTO offers extensions to the Excel COM object model, there are similar types and names, and in many cases you can get access to the underlying COM object
    from the VSTO types, which is why you see similar concepts in both.

    The Excel COM object model (and hence Microsoft.Office.Interop.Excel) is part of the desktop version of Excel and is updated with every Excel version.

    VSTO is a part of the Visual Studio product range, and there were different versions of VSTO which don’t overlap exactly with the Excel versions. Although VSTO is available with Visual Studio 2017 and supports Excel 2016, there does not seem to have been
    any further development on it in recent years.

    -Govert

    Excel-DNA — Free and easy .NET for Excel

  • Hi Aditya90u,

    Has your original issue been resolved? If it has, I would suggest you mark the helpful reply as answer.
    If not, please feel free to let us know your current issue.

    Best Regards,

    Terry

2 / 2 / 3

Регистрация: 06.10.2013

Сообщений: 167

1

26.05.2016, 09:44. Показов 2270. Ответов 3


Студворк — интернет-сервис помощи студентам

Добрый день.
Подскажите пожалуйста где можно скачать Microsoft.Office.Tools.Excel.dll



0



Эксперт .NET

11443 / 7770 / 1190

Регистрация: 21.01.2016

Сообщений: 29,152

26.05.2016, 09:49

2

AlexLan73, оно идёт в составе VSTO.



1



2 / 2 / 3

Регистрация: 06.10.2013

Сообщений: 167

26.05.2016, 09:51

 [ТС]

3

Спасибо)
А если у меня win 7, подойдет?)



0



Эксперт .NET

11443 / 7770 / 1190

Регистрация: 21.01.2016

Сообщений: 29,152

26.05.2016, 09:55

4

AlexLan73, там же требования указаны — поддержка начиная с XP.



1



Файл Microsoft.Office.Tools.Excel.dll считается разновидностью DLL-файла. DLL-файлы, такие как Microsoft.Office.Tools.Excel.dll, по сути являются справочником, хранящим информацию и инструкции для исполняемых файлов (EXE-файлов), например Setup.exe. Данные файлы были созданы для того, чтобы различные программы (например, Microsoft Visio) имели общий доступ к файлу Microsoft.Office.Tools.Excel.dll для более эффективного распределения памяти, что в свою очередь способствует повышению быстродействия компьютера.

К сожалению, то, что делает файлы DLL настолько удобными и эффективными, также делает их крайне уязвимыми к различного рода проблемам. Если что-то происходит с общим файлом DLL, то он либо пропадает, либо каким-то образом повреждается, вследствие чего может возникать сообщение об ошибке выполнения. Термин «выполнение» говорит сам за себя; имеется в виду, что данные ошибки возникают в момент, когда происходит попытка загрузки файла Microsoft.Office.Tools.Excel.dll — либо при запуске приложения Microsoft Visio, либо, в некоторых случаях, во время его работы. К числу наиболее распространенных ошибок Microsoft.Office.Tools.Excel.dll относятся:

  • Нарушение прав доступа по адресу — Microsoft.Office.Tools.Excel.dll.
  • Не удается найти Microsoft.Office.Tools.Excel.dll.
  • Не удается найти C:WindowsMicrosoft.NETassemblyGAC_MSILMicrosoft.Office.Tools.Excelv4.0_10.0.0.0__b03f5f7f11d50a3aMicrosoft.Office.Tools.Excel.dll.
  • Не удается зарегистрировать Microsoft.Office.Tools.Excel.dll.
  • Не удается запустить Microsoft Visio. Отсутствует требуемый компонент: Microsoft.Office.Tools.Excel.dll. Повторите установку Microsoft Visio.
  • Не удалось загрузить Microsoft.Office.Tools.Excel.dll.
  • Не удалось запустить приложение, потому что не найден Microsoft.Office.Tools.Excel.dll.
  • Файл Microsoft.Office.Tools.Excel.dll отсутствует или поврежден.
  • Не удалось запустить это приложение, потому что не найден Microsoft.Office.Tools.Excel.dll. Попробуйте переустановить программу, чтобы устранить эту проблему.

Файл Microsoft.Office.Tools.Excel.dll может отсутствовать из-за случайного удаления, быть удаленным другой программой как общий файл (общий с Microsoft Visio) или быть удаленным в результате заражения вредоносным программным обеспечением. Кроме того, повреждение файла Microsoft.Office.Tools.Excel.dll может быть вызвано отключением питания при загрузке Microsoft Visio, сбоем системы при загрузке Microsoft.Office.Tools.Excel.dll, наличием плохих секторов на запоминающем устройстве (обычно это основной жесткий диск) или, как нередко бывает, заражением вредоносным программным обеспечением. Таким образом, крайне важно, чтобы антивирус постоянно поддерживался в актуальном состоянии и регулярно проводил сканирование системы.

Понравилась статья? Поделить с друзьями:
  • Microsoft office excel spreadsheets
  • Microsoft office excel software
  • Microsoft office excel shapes
  • Microsoft office excel reader
  • Microsoft office excel programming