Reputation: 409
Our office add-in is expecting some data to be available in the document before it can process the requests. When running Apps for Office project template in Visual Studio, is there any way to open up a document template instead of opening a blank document (word or excel)?
Upvotes: 0
Views: 311
Reputation: 8670
You will need to add your template document to the "Manifest" project, and then set the Start Document property to point at your file, rather than a "New Excel Workbook" (or what new file type it's set to).
It looks like http://simonjaeger.com/apps-for-office-use-a-custom-start-document/ describes the step-by-step process. Including two of the pictures from his site below, see the blog post itself for the text content if the pictures don't guide you all the way there.
Add/include file to manifest solution:
Set start document
Upvotes: 1