Reputation: 6061
While I was adding controls to a VSTO MS Word template in Visual Studio, the copy of Word that was serving as the form editor crashed taking Visual Studio down with it. When I restarted Visual Studio, I discovered that while the controls I'd spent the last several hours inserting and naming were preserved in the ThisDocument.Designer.vb file the associated .dotx file apparently was not autosaved because none of the new controls were on it.
Is there any way to restore the controls to the .dotx file from the designer; or am I stuck with having to redo all of the lost work?
I'm using VSTO for Office 2007 if it matters.
Upvotes: 0
Views: 290
Reputation: 3565
If you have built your application at least once then you can copy the .dotx file created in your bin folder.
Upvotes: 1