question

AartiPunjabi-2332 avatar image
0 Votes"
AartiPunjabi-2332 asked

Get DocumentName in Custom Ribbon Control

This is regarding Office Desktop Addin .

Is there a way to get the document name from a custom ribbon control?
The ribbon needs to display information based on the document it is called for.
It may or may not be the active document.

sample VSTO Addin callback:

public bool GetVisible(Office.IRibbonControl control)
{
// logic based on the document for which this is called.
}

sample COM plugin callback:

HRESULT GetVisible(IDispatch *pControl, VARIANT_BOOL *visible)
{
// logic based on the document for which this is called.
}

office-addins-devoffice-vsto-com-dev
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

0 Answers