0

CustomTaskPanel over whole explorer width

The Screenshot shows an empty Form Region that is displayed the way I'd like to have my Custom Task Panel being displayed. The CTP, the panel at the bottom, is not supposed to take the whole explorer width.

this.pane = Globals.ThisAddIn.CustomTaskPanes.Add(mailForm, "TLS-Verfahren", ??);

This is the line to add the CustomTaskPane, question is what to put instead of '??'. When I open an extra Inspetor window, its the inspector window. But the issues is with the ActiveInlineResponse of the Explorer object. I don't have the window of only the (see picture) right side where the response is written.

I tried something like this:

var mailDocument = this.explorer.ActiveInlineResponseWordEditor as Microsoft.Office.Interop.Word.Document;

and then get the ActiveWindow of the mailDocument. But it's null (or actually throws a ComException when called)

Eugene Astafiev
  • 47,483
  • 3
  • 24
  • 45
Pascal
  • 51
  • 1
  • 5

2 Answers2

0

You cannot have CTP at the bottom of the inline response only. It is either the right side of the explorer (next to the reading pane) or the bottom of the whole Explorer.

Dmitry Streblechenko
  • 62,942
  • 4
  • 53
  • 78
0

Custom task panes can't be added to inline responses. Use the Outlook form regions instead. See Create Outlook form regions and Outlook 2013 inline response and form region for more information.

This is the line to add the CustomTaskPane, question is what to put instead of '??'.

This is a custom task pane title string. The text that appears in the title bar of the new custom task pane.

Eugene Astafiev
  • 47,483
  • 3
  • 24
  • 45