How to select .NET framework version running from Excel? -


How can I specify that the Excel NAT framework uses version 2.0 other than adding an excel.exe? Running NET dll. Config file in the Office Binary folder?

Our application runs in Excel and uses VBA, which calls in managed code. In the Net Assembly. I believe the textbook method of doing this is to add excel.exe.config to the Office Binomial Directory:

  & lt ;? XML version = "1.0"? & Gt; & Lt; Configuration & gt; & Lt; Startup & gt; & Lt; Supported serial version = "v2.0.50727" /> & Lt; / Startup & gt; & Lt; / Configuration & gt;  

This option is not acceptable for our customers, firstly because they will not allow us to include files in the office directory, and even if they do so, Will not be able to afford to break. NET v1.1 which is the default choice of Excel.

In order to copy the Excel.exe file to our own application directory from the customer's Office directory, the solution that we thought was working, to add the config file there and execute that file. . It works well, but we have serious installation problems, where the install script can not find the correct version of Excel. Apart from this it is a dirty havoc in the first place.

Any ideas will be welcome. I wonder if a layer of unmanaged (non-net) code can work in DNL. Some advice or some simple choice on how to do this will be appreciated because it is not trivial.

related:

< P> The second way to configure the selected version for Excel is to change the following registry key:

  HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ .NETFramework \ Policy \ AppPatch \ v2.0.50727.00000 \ Excel.exe  

By default, this key forces the 1.1 framework to be used; By removing it (or changing its name), Excel can load the latest version available.

If you are concerned about breaking .NET 1.1 inside Excel, you must eliminate the second nulled copy of the Axl program file. The .NET framework can be loaded only once in the given Windows process, so within an example of excel.exe, you have to choose between 1.1, 2.0 or more.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -