I
I
iluxa18102016-08-13 12:27:04
.NET
iluxa1810, 2016-08-13 12:27:04

Is it possible to make the application work on a PC where the required version of office is not available?

Is it possible to make the application work on a PC where the required version of office is not available?
I developed an application where the office was 2016, then I threw the application on a PC, where the office was 2007 and there were problems starting ...
The machine was 2007 office and I tried to throw the library (Like, from 2016) and got the following error:
> > System. IO.FileLoadException: Could not load file or assembly 'office, Version=14.0.0.0, Culture=neutral,
> PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The
> located assembly's manifest definition does not match the assembly
> reference. (Exception from HRESULT: 0x80131040) File name: 'office,
> Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'
> ***
>
> WRN: Assembly binding logging is turned OFF. To enable assembly bind
> failure logging, set the registry value
> [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There
> is some performance penalty associated with assembly bind failure
> logging. To turn this feature off, remove the registry value
> [HKLM\Software\Microsoft\Fusion!EnableLog].

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Артём Свешников, 2016-08-13
@zenitfan2109

Конкретно с MS'овскими всякими Microsoft.Office.Interop.<нужная прога> - невозможно. Пруф. Там же есть рекомендация в виде ссылки на сторонние библиотеки. Если использовать форматы docx (и ему подобные), то можно использовать OpenXML SDK.
UPD: разумеется, если использовать OpenXML SDK, то приложение переписывать придётся.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question