December, 2009

  • Akash Blogging......

    Customizing QAT for one Item Type disables the ability to customize QAT for other Item Types. Bug?

    • 0 Comments

    A few days ago I ran into an issue while trying to customize the Quick Access Toolbar(QAT) for a Item Type in Outlook. I was able to customize the QAT but then I realized that I had lost the ability to customize the QAT for other Item Types(Contacts, Appointments etc.).

    I customized the QAT for the RibbonID “Microsoft.Outlook.Mail.Read”, below is the Ribbon XML that I used:

    <?xml version="1.0" encoding="utf-8" ?>
    <customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui" onLoad="Ribbon_OnLoad">
    <ribbon startFromScratch="true">
    <qat>
    </qat>
    </ribbon>
    </customUI>

    Below is a screenshot of a mail when I open it in Outlook. Yeh, I know its not useful to have no QAT and no buttons in the ribbon..that’s because of the startFromScratch=”true”. If startFromScratch is not set to “true” you will not be able to customize the QAT.

    Without QAT 

    Now lets take a look at the actual problem. I opened up a contact Item and wanted to customize the QAT from the UI but the option to customize is disabled. Below is what it looks like:

    image

    I had just customized the Ribbon for the RibbonID “Microsoft.Outlook.Mail.Read”, why should that have any effect on the QAT for a Contact?  Bug?

  • Akash Blogging......

    The getVisible callback has no effect on Tabs with idMso when startFromScratch=true. Bug?

    • 0 Comments

    This is another issue that I bumped into when startFromScratch is set to true. What I wanted to do was to show/hide tabs based on Message Class. If my Message Class was IPM.Note.Custom then I wanted to just show the “My Tab” otherwise I wanted to show the “TabReadMessage”.

    Why did I set the startFromScratch to true? I had to customize the Quick Access Toolbar(QAT) also. Below is what my Ribbon XML looks like:

    <?xml version="1.0" encoding="utf-8" ?>
    <customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
    <ribbon startFromScratch="true">
    <tabs>
    <tab id="MyTab" label="My Tab" getVisible="MyTab_OnGetVisible">
    </tab>
    <tab idMso="TabReadMessage" getVisible="TabReadMessage_OnGetVisible">
    </tab>
    </tabs>
    </ribbon>
    </customUI>

    When I opened a message with the IPM.Note.Custom message class, my callbacks(MyTab_OnGetVisible,TabReadMessage_OnGetVisible) fire and I return True from the MyTab_OnGetVisible callback and False from the TabReadMessage_OnGetVisible callback. Things are good this point.
     
    Now I open a message with the IPM.Note(regular mail message) message class, my callbacks fire and I return False from the MyTab_OnGetVisible callback and True from the TabReadMessage_OnGetVisible callback and expect to the “My Tab” hidden and the “TabReadMessage” visible.. Right?
     
    To my surprise, the callbacks fires just fine but the “True” that I return from the TabReadMessage_OnGetVisible callback has no effect on the visibility of the tab and I am left with no tabs on the screen. Bug?

    From what I know this bug has been fixed in Office 14 and a fix for Office 12 has been requested for.

  • Akash Blogging......

    Did you ever have to re-sign the Application and Deployment manifest for a VSTO 3.0 ClickOnce add-in?

    • 0 Comments

    My customer had written a VSTO 3.0 add-in but could not publish(ClickOnce) it directly as he did not have access to the production environment. Further more there was a need to change a setting in the config file. He create a Web Setup project to deploy all the file and also altered the config file using a custom action in the setup project.

    Changing the config file invalidated the hash and now the application and deployment manifest for the add-in had to be resigned. In case you have never done it before, below are links to a very good blog post and a Channel9 video on how to re-sign the VSTO 3.0 manifests using MAGE.

    Re-signing ClickOnce Application and Deployment Manifests with MAGE
    http://channel9.msdn.com/posts/funkyonex/Resigning-ClickOnce-Application-and-Deployment-Manifests-with-MAGE/

    Signing and re-signing manifests in ClickOnce
    http://blogs.msdn.com/vsto/archive/2009/04/29/signing-and-re-signing-manifests-in-clickonce.aspx

    Enjoy!

Page 1 of 1 (3 items)