SmartDocument: RefreshPane() doesn't update TaskPane immediately

B

Beat Bucheli

Hello,

In my Excel 2003 SmartDocument (written in .Net with VSTO), I have to
show/hide several task pane controls based on the state of other task pane
controls. So I try to update the task pane:

Application.ThisWorkbook.SmartDocument.RefreshPane();

But this does the job only partially - the task pane changes not until
another worksheet cell ist selected. What's wrong?

Thanks
Beat
 
B

Beat Bucheli

.... resolved, a type cast caused an exception, so RefreshPane() wasn't
executed. The 'Target' parameter in ISmartDocument.InvokeControl contains an
Excel.Workbook if the XML type name is
namespace#actionPertainsToEntireSchema. The documentation mentions only
Excel.Range...
 
Top