Using a BackstageGroup with IdMso "GroupPrintProtectedView" causes Word to crash

Add-in Express™ Support Service
That's what is more important than anything else

Using a BackstageGroup with IdMso "GroupPrintProtectedView" causes Word to crash
 
Roger Middlebrook




Posts: 98
Joined: 2004-08-24
Office 2010
ADX 6.5.3057

To reproduce this error:


  • Create a new COMAddIn
  • Add an AdxBackstageView component
  • Add an AdxBackstageTab to this with IdMso "TabPrint"
  • Add an AdxBackstageGroup with IdMso "GroupPrintProtectedView" to the FirstColumn of the tab
  • Run your add-in within Word
  • Close the initial document so you now have no documents open in Word
  • Click the File tab to return to Backstage View
  • Word crashes


I really would like to work with the GroupPrintProtectedView but do not know how to stop this error occurring when all documents are closed and the user clicks the File tab.

Do you have any suggestions?

Thanks
it may be unhelpful, but it's all I've got...
Posted 18 Nov, 2011 08:30:26 Top
Eugene Astafiev


Add-in Express team


Posts: 8540
Joined: 2007-07-25
Hi Roger,

Unfortunately I couldn't reproduce the issue because as soon as I close the active document in Word the TabPrint backstage tab is getting disabled. Could you please specify the build number of Office 2010 you have installed on the PC?
.NET, Extended MAPI, Windows Phone & RT
Posted 18 Nov, 2011 08:50:40 Top
Roger Middlebrook




Posts: 98
Joined: 2004-08-24
Thanks Eugene. The Office version is 14.0.6106.5005 (32-bit).

Just to be clear on what I do to cause the crash:


  • I click the File tab to go to Backstage View
  • Then I click the Close button, which takes me back to the Home tab with no document open
  • If I then click on the File tab again, Word crashes.


I want to get exactly the same as you do, with the Print tab disabled. Sadly I get the crash instead.
it may be unhelpful, but it's all I've got...
Posted 18 Nov, 2011 09:03:49 Top
Eugene Astafiev


Add-in Express team


Posts: 8540
Joined: 2007-07-25
Hi Roger,

I did exactly the same steps as you do. Unfortunately I wasn't able to reproduce the issue even with Office 2010 14.0.6106.5005 (32-bit). Do you have any other add-ins installed for Word?

Anyway, could you please send a sample add-in project which can reproduce the issue to the support e-mail address (see readme.txt for details)? I will test it in one of my virtual PCs with Office 2010 x86.
.NET, Extended MAPI, Windows Phone & RT
Posted 18 Nov, 2011 09:41:04 Top
Roger Middlebrook




Posts: 98
Joined: 2004-08-24
I do have other add-ins loaded but they are Microsoft's own:

  • Microsoft Visual Studio 2008 Tools for Office Design-Time Adaptor for Word 2003
  • Microsoft Visual Studio 2008 Tools for Office Design-Time Adaptor for Word 2007
  • MyAddin3 - this is the cut down addin that causes the problem
  • OneNoteLinked Notes Add-In


I'll send you MyAddin3.
it may be unhelpful, but it's all I've got...
Posted 18 Nov, 2011 09:50:34 Top
Eugene Astafiev


Add-in Express team


Posts: 8540
Joined: 2007-07-25
Hi Roger,

Thank you for providing me with a sample add-in project. I have finally reproduced the issue in one of my virtual PCs with Windows XP and Office 2010 x86.

It looks like this issue doesn't relate to Add-in Express and belongs to Office 2010 x86 (note, the x64 version of Office works like a charm). I can reproduce it even with a regular VSTO add-in project (could send it to you if you wish). Moreover, I can't provide you with any workaround because the issue doesn't depend on our code.
.NET, Extended MAPI, Windows Phone & RT
Posted 19 Nov, 2011 11:44:42 Top
Andrei Smolin


Add-in Express team


Posts: 16731
Joined: 2006-05-11
Hi Roger,

I posted the description of the issue here. Hopefully, in a couple of days, we will get some reaction from Microsoft staff.

I see two variants:
- we've missed something; in this case, there's a hope that we'll get a solution of this problem
- we are correct and this is a bug in Word, Ribbon or elsewhere; in this case, we will have to live with it for an unknown time frame.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 22 Nov, 2011 02:30:25 Top
Roger Middlebrook




Posts: 98
Joined: 2004-08-24
Thanks Andrei

Do you think this is perhaps related to my earlier post: Custom BackStage modifications vanish after ActiveProtectedViewWindow.Edit? It was whilst trying to resolve this earlier problem that I found this additional issue.

Roger
it may be unhelpful, but it's all I've got...
Posted 22 Nov, 2011 03:06:36 Top
Andrei Smolin


Add-in Express team


Posts: 16731
Joined: 2006-05-11
Roger,

I've found that your original issue is a bug, see here. I don't know if the two bugs are related.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 22 Nov, 2011 11:02:53 Top