SmartDocument: RefreshPane() doesn't update TaskPane immediately

  • Thread starter Thread starter Beat Bucheli
  • Start date Start date
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
 
.... 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...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top