Click here to Skip to main content
14,838,044 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i have built one application in which i am loading html pages in ck editor for edit and then save it. but latter when i am retrieving the saved file all the format is lost. so now i am trying to load the original word document into ck editor. i really don't know whether it is possible or not. so if any one has worked out it before please help me regarding this thing. if any other solution will be accepted but note that i have to load word document on server side and have to save in the server for future use. please don't suggest me any paid component because i am doing the project as intern and not so financially capable of investing budget on commercial components of asp.net. thank you for all in advance.
Posted

   
Comments
Member 11808085 23-Jul-15 8:14am
   
Thank you for your solution.... i am just going through it....if any doubt or anything to clarify i will contact u soon
First regarding the saved file loosing all the formatting, I presume you are referring to HTML file format. Well unfortunately without more information I cannot say for sure why this issue occurs to you but I presume the problem may be that your output file uses external css, have you tried using only inline styling?

Nevertheless regarding the word documents you'll have to convert them to HTML content in order to display them in any WYSIWYG HTML editor (this includes CK editor as well). In case your documents are all newer (DOCX format) I would suggest you to try this out:
Transform DOCX to HTML/CSS with High-Fidelity using PowerTools for Open XML[^]

If you need the solution for both old (DOC) and new word format then I'm afraid there is no free solution (at least not to my knowledge). Well... there is Word's automation which I wouldn't recommend you to use on server side.
   
Comments
Member 11808085 23-Jul-15 8:17am
   
thank you Mario Z. i will work upon the link what u have sent. if its useful i will definitely inform u back.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900