Converting Word document to HTML page

Posted by rajarsn-7627 under ASP.NET on 9/4/2014 | Points: 10 | Views : 524 | Status : [Member] | Replies : 2
I have a word document that needs to be converted to HTML page. Basically, the doc is the study material for Economics. So there will be Page Content Listing, Chapter Headings, Subheadings, small captions, titles , images, etc. Some texts need to be bold, some to be italic, and some other needs to be underlined. I need to apply proper styles for these contents.

I can convert the document to html page using the code mentioned in http://www.aspsnippets.com/Articles/Convert-Office-Word-Document-to-HTML-and-display-it-in-browser-in-ASP.Net.aspx link. But I am not sure how to apply the required styles? Should I use XSLT or simple CSS to convert this html page to formatted one?




Responses

Posted by: Amatya on: 5/16/2015 [Member] Silver | Points: 25

Up
0
Down
https://support.office.com/en-in/article/Convert-a-Word-document-to-a-Web-page-34079d7a-a6e4-43fd-b6a9-b7f4fd5c4585
Refer this above site.. It will Resolve the issue
Thanks[Aditya]

Feel free to share informations 9731764134
mail Id ' adityagupta200@gmail.com
Thanks

rajarsn-7627, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Oliver32 on: 6/23/2015 [Member] Starter | Points: 25

Up
0
Down
I believe you need to apply the specified style to Word content before converting it to HTML page. Follow link shows how to convert Word file to HTML page without changing the original layout in C# :

http://www.e-iceblue.com/Tutorials/Spire.Doc/Spire.Doc-Program-Guide/Word-to-HTML-Convert-Word-to-HTML-with-C-VB.NET.html

Hope you will find this work.

rajarsn-7627, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response