Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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

share|improve this question
add comment

1 Answer

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.

http://office.microsoft.com/en-us/sharepoint-server-help/configure-the-document-to-web-page-converters-HA010157537.aspx

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/

share|improve this answer
    
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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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