Regression ADX6 -> 7 with PowerPoint SlideLayoutGallery

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

Regression ADX6 -> 7 with PowerPoint SlideLayoutGallery
Builtin function SlideLayoutGallery doesn't update UI correctly 
Andreas Vox


Guest


Since upgrading to Addin Express 7 our addin doesn't provide correct UI feedback for PowerPoints SlidelayoutGallery function any more. Instead of highlighting the slide layout of the current slide it always highlights the same slide layout, apparently the one active when the gallery was opened for the first time.
Changing the layout works as expected, but opening the gallery still shows the wrong layout.

This worked fine in Addin Express 6.

I reproduced the issue with a barebone ADX 7 addin for NET: just one ribbon tab, one group, and one gallery with IdMSO="SlideLayoutGallery".

System:
Windows 7 64bit
Office 2010 32 bit
ADX 7.7.4087

Any idea how to fix this?
Posted 02 Sep, 2015 07:47:15 Top
Andrei Smolin


Add-in Express team


Posts: 18825
Joined: 2006-05-11
Hello Andreas,

Could you please send us a video showing the existing and desired behavior? Send it to the support email address; you can find it in {Add-in Express installation folder}\readme.txt. Please make sure your email contains a link to this topic.


Andrei Smolin
Add-in Express Team Leader
Posted 02 Sep, 2015 08:40:30 Top
Andrei Smolin


Add-in Express team


Posts: 18825
Joined: 2006-05-11
Oh, you can use Jing; it's free.


Andrei Smolin
Add-in Express Team Leader
Posted 02 Sep, 2015 08:45:20 Top
Andreas Vox


Guest


Hi,

and here is an image explaining the problem:
[img]http://imgbin.org/index.php?page=image&id=25818[/img]

As you can see, the current page has the Picture with Caption layout (Bild mit ?berschrift), but the slide gallery marks the title layout instead.
Posted 02 Sep, 2015 09:39:15 Top
Andreas Vox


Guest


With our full plugin, the layout gallery sometimes doesn't update completely:

[img]http://imgbin.org/index.php?page=image&id=25820[/img]

As you can see, several layouts are replaced by the dots-circle to indicate waiting. This picture will not change though, until I close and reopen this presentation.
Posted 02 Sep, 2015 09:50:00 Top
Andrei Smolin


Add-in Express team


Posts: 18825
Joined: 2006-05-11
Hello Andreas,

Thank you for the videos and screenshots. I reproduce the issue in a pure VSTO add-in. I think the issue belongs to PowerPoint because the Paragraph Spacing gallery (idMso ="ParagraphSpacing") in Word 2013 works correctly for me.

I suppose you test your ADX 6 add-in in PP 2007, correct?

I'm going to post about this problem at the Office for Developers forum; I'll provide a link when it is posted.


Andrei Smolin
Add-in Express Team Leader
Posted 03 Sep, 2015 06:35:09 Top
Andreas Vox


Guest


Andrei Smolin writes:
I suppose you test your ADX 6 add-in in PP 2007, correct?


No, we develop on a Win 7 system with Office 2010 and then test the addin under PPT 2007 and 2013.

As soon as I replaced the ADX 7 references with ADX 6 references, the addin worked correctly on the same system.
Posted 03 Sep, 2015 07:14:22 Top
Andrei Smolin


Add-in Express team


Posts: 18825
Joined: 2006-05-11
Could you please compare the Ribbon XMLs generated by the add-in with ADX 7 and ADX 6 references? To get the Ribbon XML, I usually use this code:

private void AddinModule_OnRibbonBeforeLoad(object sender, ADXRibbonBeforeLoadEventArgs e) {
    Clipboard.SetText(e.Xml);
}


Then I start the host application and paste the Ribbon XML in any document.

Do you have Office 2007 and 2013 on the same machine?

Here's the link to the post describing this issue on the Office for Developers forum:
https://social.msdn.microsoft.com/Forums/vstudio/en-US/07368d40-38ae-43ef-bc76-c152f30233b3/a-custom-instance-of-a-builtin-ribbon-gallery-works-incorrectly-in-powerpoint-2013-2010?forum=officegeneral.


Andrei Smolin
Add-in Express Team Leader
Posted 03 Sep, 2015 07:26:44 Top
Andreas Vox


Guest


Here's the XML for ADX 7.7:

<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui" onLoad="ribbonLoaded_Callback" loadImage="getImages_Callback">
  <ribbon startFromScratch="false">
    <tabs>
      <tab getKeytip="getKeytip_Callback" getLabel="getLabel_Callback" getVisible="getVisible_Callback" id="adxRibbonTab_5038746235f649d4bff194ff94ed044c">
        <group getKeytip="getKeytip_Callback" getLabel="getLabel_Callback" getScreentip="getScreenTip_Callback" getSupertip="getSuperTip_Callback" getVisible="getVisible_Callback" id="adxRibbonGroup_077779e302ae45b39e2505cfeddd2163">
          <gallery enabled="true" getVisible="getVisible_Callback" idMso="SlideLayoutGallery" size="normal" />
        </group>
      </tab>
    </tabs>
  </ribbon>
</customUI>


And here for ADX 6.4:

<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui" onLoad="ribbonLoaded_Callback" loadImage="getImages_Callback">
  <ribbon startFromScratch="false">
    <tabs>
      <tab getKeytip="getKeytip_Callback" getLabel="getLabel_Callback" getVisible="getVisible_Callback" id="adxRibbonTab_5038746235f649d4bff194ff94ed044c">
        <group getKeytip="getKeytip_Callback" getLabel="getLabel_Callback" getScreentip="getScreenTip_Callback" getSupertip="getSuperTip_Callback" getVisible="getVisible_Callback" id="adxRibbonGroup_077779e302ae45b39e2505cfeddd2163">
          <control enabled="true" getVisible="getVisible_Callback" idMso="SlideLayoutGallery" showImage="false" showLabel="true" size="normal" />
        </group>
      </tab>
    </tabs>
  </ribbon>
</customUI>
Posted 03 Sep, 2015 08:41:25 Top
Andrei Smolin


Add-in Express team


Posts: 18825
Joined: 2006-05-11
Thank you. I see the difference: in ADX 6, we create the tag control; in ADX 7 we create tag gallery. I've just tested replacing the tag in the OnRibbonBeforeLoad event; this works for me in a test add-in:

private void AddinModule_OnRibbonBeforeLoad(object sender, ADXRibbonBeforeLoadEventArgs e)
{
    e.Xml = e.Xml.Replace("<gallery", "<control");
}


Does this work for you?


Andrei Smolin
Add-in Express Team Leader
Posted 03 Sep, 2015 08:55:10 Top