WordTaskPane

Add-in Express™ Support Service
That's what is more important than anything else

WordTaskPane
How switch off/on the WordTaskPane 
Andreas Waning




Posts: 33
Joined: 2011-06-27
Hello,

I have 2 WordTaskPane in my Project.

1. When Word starts both WordTaskPane should be not shown.

2. With a Ribbon Button I want to Show WordTaskPane1 and with a other button I want to Show WirdTaskPane2.

- How can I prevend that the WordTaskpane will not shown after Word starting ?
- How can I Switch on one TaskPane ?

Thanks,
Andreas
Posted 10 Jul, 2013 02:18:41 Top
Andrei Smolin


Add-in Express team


Posts: 14094
Joined: 2006-05-11
Hello Andreas,

1. Set ADXWordTaskPane.Visible=false in the ADXWordTaskPane.ADXBeforeTaskPaneShow event
2. Wie bitte? If you talk about showing the pane when required, please use the ADXWordTaskPanesCollectionItem.ShowTaskPane() method.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 10 Jul, 2013 02:39:20 Top
Andreas Waning




Posts: 33
Joined: 2011-06-27
Thank you.


To disable the TaskPane works fine.
private void ADXWordTaskPane1_ADXBeforeTaskPaneShow(object sender, ADXBeforeTaskPaneShowEventArgs e)
{
Visible = false;
}

but to try view the TaskPane does not work:

private void adxRibbonButton1_OnClick(object sender, IRibbonControl control, bool pressed)
{
adxWordTaskPanesCollectionItem1.ShowTaskPane();
}

Any idea ??

Thanks
Andreas
Posted 10 Jul, 2013 03:58:23 Top
Andrei Smolin


Add-in Express team


Posts: 14094
Joined: 2006-05-11
Andreas,

I suppose ShowTaskPane doesn't work because you set Visible = false in the ADXBeforeTaskPaneShow event. You can use a flag to bypass this.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 10 Jul, 2013 04:03:37 Top