Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I am working on ASP.NET project and I am using Bootstrap for the first time . Please does any one know how to
open a word file in to
JavaScript
Bootstrap WYSIWYG editor
and then after editing it should update in the word file.
Is it Possible

What I have tried:

I have googled but I all got is how to load HTML.
Posted
Updated 14-Apr-16 7:27am
Comments
Moleter 17-May-16 8:40am    
You should probably take a look at this word processing library for C#, more specifically see this demo. That sample demonstrates how you can take a HTML content from some WYSIWYG editor and add it into a document. I presume this is exactly what you're looking for.

1 solution

The term "Bootstrap WYSIWYG editor" probably refers to an HTML editor. As I can see, there are more than one. No matter what it is, I cannot believe that they work with anything but HTML; at best, I can imagine that some could work with some XML or other structured format (pure text would not be a problem for you, right? :-)), but, ultimately, they all have to represent the text as HTML.

From the other hand, you ".docx" means something totally foreign to the Web, not part of W3 standards; and I cannot believe that this standard (ECMA-376, ISO/IEC 29500) format of proprietary origin will ever become a W3 standard. But it does not mean you cannot use it. You use ASP.NET where you can solve all problems. Basically, you need to convert .docx to HTML. This is what it is:
Office Open XML[^],
Office Open XML file formats[^].

So, the Open XML format is publicly available, so you can read the document on the server side using .NET.

I would suggest the following steps: 1) think seriously if you really need Word documents; staying with HTML is always easier and covers the interests of most Web users; 2) in Word is really required, review supporting software: List of software that supports Office Open XML[^];
see also:
Standard ECMA-376[^],
ISO/IEC 29500-1:2008 - Information technology -- Document description and processing languages -- Office Open XML File Formats -- Part 1: Fundamentals and Markup Language Reference[^].

But first of all, with ASP.NET, you can use Microsoft Open XML Format SDK:
Download Open XML SDK 2.5 for Microsoft Office from Official Microsoft Download Center[^],
Welcome to the Open XML SDK 2.5 for Office[^].

—SA
 
Share this answer
 
v2
Comments
Richard Deeming 14-Apr-16 14:07pm    
Your first two links weren't closed properly; I've taken the liberty of fixing them for you. :)

+5
Sergey Alexandrovich Kryukov 14-Apr-16 14:49pm    
Thank you very much, Richard.

Were the links broken? I only tried to remove ^ which look more and more pointless to me...

—SA
Richard Deeming 14-Apr-16 14:51pm    
You'd removed the closing </a> tag as well, so the rest of the text up to the next <a> tag was part of the link. :)
Sergey Alexandrovich Kryukov 14-Apr-16 14:58pm    
:-)

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