johnny
johnny

Reputation: 19735

How do I display tabbed, separate documents in Microsoft Word with VSTO and .NET?

If I want to show more than one document in MS Word, I have multiple windows. Is it possible to use VSTO and create an add-in for this using .NET? I looked at the Namspace, Microsoft.Office.Interop.Word, but I could not see how to do this in .NET and C#. I am aware there are add-ins one can download or purchase. I would like to do it in VSTO.

Upvotes: 0

Views: 225

Answers (1)

Eugene Astafiev
Eugene Astafiev

Reputation: 49395

The Word object model (nor VSTO) doesn't provide anything for displaying documents tabbed (like web browsers do).

Earlier Word versions allowed to keep documents in the single window (MDI). The Word 2013 Opening multiple documents in one window? forum states the following:

In Word XP, 2003, 2007, and 2010, when the option "Windows in Taskbar" or "Show all windows in taskbar" is checked and you open multiple documents, each document gets its own set of menus or ribbons and behaves as a completely separate window. (The technical term is Single Document Interface or SDI.)

In those versions, when that option is unchecked and you open multiple documents, there is only one set of menus or ribbons. You can tile or cascade the documents within the main Word window. (The term for this is Multiple Document Interface or MDI.) The fact that there's only one icon on the taskbar is really a side effect, but it was easier to dumb down the option name than to explain the difference between SDI and MDI.

In Word 2013, MDI no longer exists, and the option doesn't appear in the dialog.

Upvotes: 1

Related Questions