I have come across a few approcahes but cant really under stand which one to use. One is using the SaveAs method which i felt is the best of the lot. But i cant use this and upload the html file to the doc lib. Can anyone please help.

If it is unclear what my question is please let me know, i ll try my best to rephrase


On a SharePoint Server a Service Document Conversion Service exists. This allows you to convert word documents to a web page in SharePoint. You won't have a html file but you end up in an article pages that you can then also edit in SharePoint directly. You will find more information in the following link.


Adding pure HTML Files to SharePoint is not so easy to handle because when you uploaded the html file, by default, SharePoint will force you to download the file instead of open it in browser. Therefore you need to change the behavior of the web application and need to change the file handling mode from permissive to strict. http://claytoncobb.wordpress.com/2011/01/07/sharepoint-2010-how-to-open-files-that-prompt-for-save-or-cancel/

  • Thanks stefan, appreciate your reply. But it is my mandatory requirement to convert using custom code and not OOTB. I have to make a html based on a template, so please can u guide me in this direction ?? – AJ Mania Jul 17 '12 at 9:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.