none
getLabel function is not getting invoked for back stage task in Office 2016 latest update RRS feed

  • Question

  • I have written the following xml to customize the backstage of Office 2016

    <?xml version="1.0" encoding="UTF-8"?>
    <customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui" onLoad="Ribbon_Load">
      <backstage>
        <tab idMso="TabPublish">
          <firstColumn>
            <taskFormGroup idMso= "PublishGroup">
              <category idMso="FileTypes">
                <task id="Task_test" getLabel="GetLabel" visible ="true" insertBeforeMso="FileSaveAsPdfOrXps">
                </task>
              </category>
            </taskFormGroup>
          </firstColumn>
        </tab>
      </backstage>
    </customUI>

    The GetLabel function is as follows

    Public Function GetLabel(ByVal control As Office.IRibbonControl) As String
            Return "MY_BUTTON"
        End Function

    This works for Office 2013 and previous version of Office 2016 but with the latest update it has stopped working.Setting the label directly works but getLabel doesnt get invoked.

    Thursday, January 7, 2016 10:04 AM

All replies

  • Hello Basma,

    Do you get any UI errors?

    See How to: Show Add-in User Interface Errors for more information.

    Thursday, January 7, 2016 10:55 AM
  • Hi Basma,

    Which updates you installed and which version of Office 2016 you used?

    I made a test with your code under Excel 2016 MSO (16.0.4312.1000) 64 bit version, but it worked correctly at my side.

    Have you tried suggestion from Eugene? Did you get any error?

    Best Regards,

    Edward


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.


    Monday, January 11, 2016 9:31 AM
  • Hi,

    I have the same problem with outlook vsto.

    Not have any ui errors, the problem exist only windows 10.

    I try install .net 4.6 in windows 8.1 but work perfectly.

    Any suggestion?

    Best Regards,


    Hélder Oliveira



    • Edited by HM Oliveira Tuesday, January 12, 2016 4:34 PM
    Tuesday, January 12, 2016 4:32 PM
  • Hello,

    Could you please be more specific? What ribbon XML do you use? 

    Are you able to reproduce the issue with a newly created add-in project? 

    Tuesday, January 12, 2016 8:22 PM
  • Hello,

    Developed an add in outlook and  work perfectly in office 2010 and 2013, however when in office windows 10 and 2016 of the backstage crashes.
    If run in windows  8.1 + office 2016  works perfectly.

    the xml used is:

      <backstage>
          <tab id="Backstage" getLabel="GetLabelBackstageButton"   columnWidthPercent="30" insertAfterMso="TabInfo" visible="true" >
          <firstColumn>
            <group id="grpOne"  getLabel="GetLabelBackstage">
              <topItems>
                <editBox  id="UrlServidor" sizeString="#####################" getLabel="GetLabelUrlServer"   alignLabel="topRight" getText="GetUrlServer"  onChange="SetUrlServer"/>
                <comboBox id="Server"    sizeString="#####################" getLabel="GetLabelServer"   getText="GetServer" onChange="SetServer" getItemCount="GetServersCount"  getItemID="GetServerId" getItemLabel="GetServerLabel"/>
              </topItems>
            </group>
          </firstColumn>
            <!--<secondColumn>
              <group>
                <topItems>
                  <labelControl label="Url Servidor:"  alignLabel="topRight"  />
                </topItems>
              </group>
            </secondColumn>-->
        </tab>
      </backstage>


    Hélder Oliveira

    Wednesday, January 13, 2016 9:26 AM
  • Hi HM,

    To check whether this is related with your environment, I suggest you test your add ins in other pcs with system 10 and Office 2016.
    To check whether this is related with your code, I suggest you comment out part in xml to check which part caused crash.

    In addition, I suggest you repair your Office first.

    Best Regards,

    Edward


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.


    Thursday, January 14, 2016 2:40 AM
  • I have a very similar issue in MS Access 2016, Windows 10, Surface Pro 4.

    My ribbon code:

    <customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui">
        <ribbon startFromScratch="false"/>
        <backstage>
            <tab idMso="TabInfo" visible="true">
                <firstColumn>
                    <group id="TestGroup" label="Test" style="normal">
                        <topItems>
                            <labelControl id="TestLabel" getLabel="OnGetLabel"/>
                            <editBox id="TestEditBox" getLabel="OnGetLabel" getText="OnGetText"/>
                        </topItems>
                    </group>
                </firstColumn>
            </tab>
        </backstage>
    </customUI>

    My callback module:

    Option Explicit
    
    Sub OnGetLabel(control As IRibbonControl, ByRef label)
    
        label = "Test"
    
    End Sub
    
    Sub OnGetText(control As IRibbonControl, ByRef text)
    
        text = "Test"
    
    End Sub

    The result:

    Note that the labelControl has correctly fired the callback and the label is correct.

    The editBox has not fired the callback for either getLabel or getText.

    Stepping through the debugger after invalidating the ribbon shows that the editBox callbacks are simply never called.

    It works perfectly on Windows 7 Access 2013. I think it is a bug.

    Thursday, January 14, 2016 10:32 AM
  • Hello,

    More people the same issue...

    http://answers.microsoft.com/en-us/office/forum/office_2016-office_install/microsoft-office-2016-update-16063662036-bug-with/6133658c-e9df-4d64-bdf2-7177fe03f27d?auth=1

    http://answers.microsoft.com/en-us/office/forum/office_2016-office_install/word-excel-and-powerpoint-2016-16063662036-the/f4bff647-1132-434a-a903-8d188590172a?auth=1

    http://answers.microsoft.com/de-de/office/forum/office_2016-visio/nach-dem-update-in-visio-2016-wird-in-der/6a6aec08-0496-49f8-a830-d795795204de

    Best Regards.


    Hélder Oliveira


    • Edited by HM Oliveira Friday, January 15, 2016 5:59 PM
    Friday, January 15, 2016 5:22 PM
  • Hi all,

    This issue has been reported by many persons. There is no solution at present.

    For this issue, I suggest you submit a feedback in the link below:
    https://excel.uservoice.com/

    If this is an urgent issue, I will suggest you contacting the Microsoft professional support so that our engineers can work closely with you to troubleshoot this issue. If the support engineer determines that the issue is the result of a bug the service request will be a no-charge case and you won't be charged. Please visit the below link to see the various paid support options that are available to better meet your needs. http://support.microsoft.com/default.aspx?id=fh;en-us;offerprophone

    Best Regards,

    Edward


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.


    Monday, January 18, 2016 5:18 AM
  • Basma,

    Is this still an issue with the latest Office update?

    I tested your code on my PC, works fine. I'm having office version 16.0.6528.1017.

    So, probably this issue is fixed with the latest office update.

    Thursday, March 10, 2016 5:58 AM