question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Second Window opens with a Ribbon declared

See original GitHub issue

Here 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

image

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. image

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.

image

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: image

If you need any more information pls ask. We can replicate the issue on atleast 3 machines.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
govertcommented, Mar 23, 2021

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

0reactions
Rand-Randomcommented, Oct 30, 2021

Hi Rand-Random, That’s great news. I have no schedule for a release yet, but probably some time in April. -Govert

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Office-js Open a New Window from the Ribbon ...
The above code uses the displayDialog-api in case it can't open the window, which opens a site that then provides a button to...
Read more >
Excel Auto-Hiding the ribbon MAXIMIZES the window
I want to BOTH auto-hide the ribbon and scale the window. As it is, using the Auto-hide Ribbon command does get rid of...
Read more >
Ribbons on Second Window - MicroStation Forum
Is there a way to be able to have ribbon tools at the top of the second application window?
Read more >
Display xamRibbon in the Ribbon Window - WPF
To display xamRibbon in the xamRibbonWindow: If you have not already done so, add a namespace declaration for xamRibbon inside the opening Window...
Read more >
Kick Off: Buzz begins as transfer window opens | Audi Field ...
Get ready for a summer flurry and plenty of MLS player debuts with the official opening of the Secondary Transfer Window on Tuesday....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found