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.
}