Second Window opens with a Ribbon declared
See original GitHub issueHere a sample to replicate the issue ItsAMeAddIn.zip
In this sample you will find a very basic implementation of an ExcelRibbon, basically its nothing.
ItsAMe.cs
[ComVisible(true)]
[Guid("0185A3C0-F064-4D8F-8FEA-AF2777A79D24")]
[ProgId("ItsAMe.ExcelRibbon")]
public class ItsAMeRibbon : ExcelDna.Integration.CustomUI.ExcelRibbon
{
}
With this in place I am facing an issue with an undesired second window appearing.
To replicate this behaviour you will find a Word Document called testDocument1.docx
in the root folder.
This document has a hyperlink to the Excel Workbook testWorkbook1.xlsx
.
Adress of the Hyperlink: testWorkbook1.xlsx#TestSheet1!TestRange
Please excuse my german setup, hope the screenshot still is understandable.
By clicking CTRL + Left MouseButton you are able to navigate the address defined in the hyperlink.
When you do so you should get 2 windows 1 is empty the other has the workbook.
Those 2 windows seem to be “connected” to the same workbook, for example if I would change the zoom level with the slider of the empty window the workbook gets zoomed correctly.
I am loading the AddIn by adding a shortcut into the XLSTART folder
%programfiles(x86)%\Microsoft Office\root\Office16\XLSTART
I have noticed that if any file (eg. Personal.xlsb) is declared in the XLSTART folder of the user the behaviour changes and is as desired and only 1 window will pop up.
%appdata%\Roaming\Microsoft\Excel\XLSTART
Therefor please make sure you remove any file that could get loaded additionally to testWorkbook1.xlsx
to get the described behaviour.
For the sample application I am using the latest version of ExcelDNA.
My Office version is:
If you need any more information pls ask. We can replicate the issue on atleast 3 machines.
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top GitHub Comments
Could you perhaps test with the last preview version of Excel-DNA v1.2.3-preview?
I’ve made some changes to the startup sequence that might affect your case.
-Govert
From: Rand-Random @.> Sent: 23 March 2021 11:19 To: Excel-DNA/ExcelDna @.> Cc: Subscribed @.***> Subject: [Excel-DNA/ExcelDna] Second Window opens with a Ribbon declared (#374)
Here a sample to replicate the issue ItsAMeAddIn.zip https://github.com/Excel-DNA/ExcelDna/files/6188145/ItsAMeAddIn.zip
In this sample you will find a very basic implementation of an ExcelRibbon, basically its nothing.
ItsAMe.cs
[ComVisible(true)] [Guid(“0185A3C0-F064-4D8F-8FEA-AF2777A79D24”)] [ProgId(“ItsAMe.ExcelRibbon”)] public class ItsAMeRibbon : ExcelDna.Integration.CustomUI.ExcelRibbon {
}
With this in place I am facing an issue with an undesired second window appearing.
To replicate this behaviour you will find a Word Document called testDocument1.docx in the root folder. This document has a hyperlink to the Excel Workbook testWorkbook1.xlsx. Adress of the Hyperlink: testWorkbook1.xlsx#TestSheet1!TestRange
https://user-images.githubusercontent.com/9868626/112121102-27579e00-8bbf-11eb-8204-e319450ac072.png
Please excuse my german setup, hope the screenshot still is understandable.
By clicking CTRL + Left MouseButton you are able to navigate the address defined in the hyperlink.
When you do so you should get 2 windows 1 is empty the other has the workbook. https://user-images.githubusercontent.com/9868626/112121548-a8169a00-8bbf-11eb-942a-c83c950f5845.png
Those 2 windows seem to be “connected” to the same workbook, for example if I would change the zoom level with the slider of the empty window the workbook gets zoomed correctly.
https://user-images.githubusercontent.com/9868626/112121761-e3b16400-8bbf-11eb-9c37-0e09a0aa0344.png
I am loading the AddIn by adding a shortcut into the XLSTART folder %programfiles(x86)%\Microsoft Office\root\Office16\XLSTART
I have noticed that if any file (eg. Personal.xlsb) is declared in the XLSTART folder of the user the behaviour changes and is as desired and only 1 window will pop up. %appdata%\Roaming\Microsoft\Excel\XLSTART
Therefor please make sure you remove any file that could get loaded additionally to testWorkbook1.xlsx to get the described behaviour.
For the sample application I am using the latest version of ExcelDNA.
My Office version is: https://user-images.githubusercontent.com/9868626/112122393-8669e280-8bc0-11eb-84a5-44ec9a6dd070.png
If you need any more information, pls ask. We can replicate the issue on atleast 3 machines.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Excel-DNA/ExcelDna/issues/374 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AADFHQ3D64WPTJKHONXFZKLTFBMIVANCNFSM4ZUYVTJQ . https://github.com/notifications/beacon/AADFHQ36Z2WYORPOHPRMZSTTFBMIVA5CNFSM4ZUYVTJ2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4MP2XSDA.gif
Saw that 1.5.0 got released as stable. Coming from 0.33.9 and going to 1.5.0 are there some manual steps to successfully upgrade, or is it as simple as upgrading the nuget package and I am good to go?
I am using the new sdk project.