Question

I am new to sharepoint 2010 and i have Sharepoint 2010 Foundation installed on server. To open word document in browser i had installed Microsoft Office Web Apps on the server and configured it and set the default open behavior to it as well. Now the requirement is i want to progmatically create new word document and want to add some predefined content in it using the code and after that i need to store that document in the library and then after open that document in word web app viewer as well. And also want this same process for the excel file as well.

Please tell me what i need to do to achieve this requirement.

Thanx in advance, your response is appreciated.

Was it helpful?

Solution

You'll need to use the Open XML SDK 2.0 from Microsoft to programatically create your Word document. Follow this link for more information: http://msdn.microsoft.com/en-us/library/office/bb448854.aspx

You'll need to let us know how you want to initiate the creation of the Word document so we can recommend where to start from a Sharepoint point of view.

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top