473,396 Members | 1,734 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

MS Word format in my own editor

Dear all,

I have made an editor using Qt framework in C++. It is having all editor functions include cut,copy,paste,select,spell check etc.

By default I save this document with .txt extension. I want to extend this functionality with allowing additional extension .doc.

I could save the document in .doc format of Microsoft. and when open that document in my editor then also it is working with defining it as of rich text format and excluded html tags.

But now if I open that doc file in MS office itself and then open that modified document again in my editor shows me junk characters along with that.

I think this might be formatting problem that customized editor would not have all formats what they are defined in traditional MS Word.

So my Question is how do I resolve this problem? Do I need to add some dll or libraries? Are they available to include local project?

Best regards,
Palak Shah
Jul 30 '08 #1
3 1675
arnaudk
424 256MB
Yes, MS Word uses a proprietary binary format in its documents. Worse, the format varies from version to version. You might want to look into how Open Office works with MS Word documents to find out more.
Jul 30 '08 #2
Yes, MS Word uses a proprietary binary format in its documents. Worse, the format varies from version to version. You might want to look into how Open Office works with MS Word documents to find out more.

Thanks arnaudk,

Great idea.

Regards,
Palak Shah
Jul 31 '08 #3
Thanks arnaudk,

Great idea.

Regards,
Palak Shah

Now I came to know that saving file through my editor the format would be of txt itself and modifying contents in word editor will add extra formatting but that would be again in html/xml. When I open with txt shows me that html/xml tags. But when I open in my editor chinese characters are shown as encoding issue.

Can I open word file programmetically in txt as I have made filter to remove html/xml tags.

Regards,
Palak Shah
Aug 2 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Preston Crawford | last post by:
I'm working on a site where one of the requirements is the ability to do a newsletter. This newsletter would either be composed with or pasted into some kind of WYSIWYG web-based editor OR they'd...
20
by: Al Moritz | last post by:
Hi all, I was always told that the conversion of Word files to HTML as done by Word itself sucks - you get a lot of unnecessary code that can influence the design on web browsers other than...
8
by: Asma | last post by:
Dear Sir, I am trying to find a way to open a Word document using C language and read the text of word doc into a variable. (Turbo C on Dos 6.0). Can anyone please tell me which libraries in...
3
by: sonic | last post by:
Hi, displaying information on a page as MS Word document seems to be as simple as: //OnLoad Response.ContentType = "application/msword"; Response.Write ( MyContentString ); (this assuming...
1
by: Scott Emick | last post by:
I am using the following code. When outlook opens the message and the Outlook HTML editor is the default editor, there is no problem. If Word is the default editor, however, it butchers up the...
3
by: tigrrgrr42 | last post by:
I am working(vb.net03and05) with word documents stored in a sql db and I am currently bringing them from a byte array into a temp file to pop into word and make word do its thing as a com object. ...
2
by: briano | last post by:
Is there a library that allows editing Word documents in the browser that is browser independent? Please forgive this question. Just trying to cover all bases. So far what I see is HTML or RTF...
6
by: Justin | last post by:
Hi all, i need some help over here... i found the solution to export file from mysql db into *.csv. but is there anyway to convert the contents into *.doc and save in my webserver and providing a...
6
by: nagar | last post by:
I need to get the list of Autocorrect entries in word. Is there a way to do it without connecting to Word? Is the list saved somewhere? If I need to connect to Word, how can I detect if it's...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.