RaReRe

Is anyone out there have come across adding more than one word document to a visual studio solution.

It is possible to add a new item or an existing item and add a word document. However Visual Studio does not create the code behind the document like ThisDocument.cs and the designer.xml and designer.cs files.

Any idea




Re: Visual Studio Tools for Office Visual Studio Tools for Office VSTO Word

Cindy Meister

Since VSTO document-level solutions are document-specific, it's not possible to have more than one document as part of a single solution.

It is possible to create a Word template, from which multiple documents can be created by the user, all linking back to the managed code that's part of the Template's VSTO project.

It's also possible to use the ServerDocument feature of VSTO to link an existing VSTO DLL with a "non-VSTO" document.