Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
09-01-2004, 11:44 AM
|
#1
|
|
LQ Newbie
Registered: Aug 2004
Posts: 18
Rep:
|
problem in reading Microsoft word as a binary file
I need to open a Microsoft word document as a binary file, and read it, but i cann't find the relation of the code of this binary file with this word document, for example, i didn't know where is the end of word document.
I'm very puzzled that i can't find it from Microsoft's web. Who can help me with some documents on the Microsoft word coding format or with the method to find them? Thanks!
|
|
|
|
09-01-2004, 11:47 AM
|
#2
|
|
LQ Newbie
Registered: Aug 2004
Posts: 18
Original Poster
Rep:
|
Maybe a suggestion on other good forums can also do me a favor!
|
|
|
|
09-01-2004, 01:43 PM
|
#3
|
|
Member
Registered: Sep 2002
Location: OH, USA
Distribution: 2.6.16-1.2096_FC5 #1
Posts: 245
Rep:
|
perhaps the OpenOffice.org sourcecode could help? or maybe they have some docs?
|
|
|
|
09-02-2004, 06:35 AM
|
#5
|
|
Guru
Registered: Nov 2002
Location: Durham, England
Distribution: Fedora Core 4
Posts: 1,565
Rep:
|
I'm afraid you cannot read binary word DOC files precisely, this is a task which still eludes highly professional developers working on it for years. The format is *extremely* complex - if you have to ask, you probably can't read it.
There is a libwv but this is GPLd. It's also fairly basic. It may help though.
|
|
|
|
09-02-2004, 09:48 AM
|
#6
|
|
LQ Newbie
Registered: Aug 2004
Posts: 18
Original Poster
Rep:
|
to itsme86:
thank you for your help, I download "Microsoft Word 6.0 Binary File Format", and have read it for a few hours, but I think it's a bit difficult for me, because i'm a begginer. I will continue on reading it, and maybe I still need your help.
|
|
|
|
09-02-2004, 09:57 AM
|
#7
|
|
LQ Newbie
Registered: Aug 2004
Posts: 18
Original Poster
Rep:
|
to mhearn:
I think I understand your meanings. Yes, I know the format of word DOC file is *extremely* complex, so I don't want to know the every bit of the file.What I want to know is only where is the begin of the document, and where is the end, and if i insert a picture in the document, what changes will happen on the document.
|
|
|
|
09-02-2004, 10:12 AM
|
#8
|
|
LQ Newbie
Registered: Aug 2004
Posts: 18
Original Poster
Rep:
|
Now I use Microsoft office word 2003. I open the DOC file with Ultraedit, and after many tests, I found the begin of the document is 0x00000a00, and guess(only guess, I don't know the end) the document is stored in binary file in turn, but if I insert a picture or a control button or a macro, I didn't know what will happen, where is the message of these things, what changes happen on the document file. What I want is to know these things, to find the begin and the end of the document, and find the message of the picture, the other messages are not important to me.
|
|
|
|
09-03-2004, 07:36 AM
|
#9
|
|
LQ Newbie
Registered: Aug 2004
Posts: 18
Original Poster
Rep:
|
After reading "Microsoft Word 6.0 Binary File Format", I think now I have known much more about the binary file format of Microsoft word than before, I have found my questions' answers now. What I need to do is to find as many as docs about all versions of Microsoft word. However, thanks you for all your helps!
|
|
|
|
09-03-2004, 09:46 AM
|
#10
|
|
LQ Newbie
Registered: Aug 2004
Posts: 18
Original Poster
Rep:
|
Hello, everyone! I'm back for helps. I can't find the binary file format of Microsoft word 2002,2003. I have searched in google, and also gone to OpenOffice.org, but can't found anything useful. Is there somebody know that whether Microsoft Corporation have release this? Who can show me these files? Thanks!
|
|
|
|
09-04-2004, 03:49 AM
|
#11
|
|
LQ Newbie
Registered: Aug 2004
Posts: 18
Original Poster
Rep:
|
I'm crying  Why nobody answer me? Is there somebody tell me whether Microsoft Corporation have released these documents?
|
|
|
|
09-04-2004, 06:27 AM
|
#12
|
|
Guru
Registered: Aug 2004
Location: Brisbane
Distribution: Centos 6.4, Centos 5.9
Posts: 15,021
|
|
|
|
|
09-06-2004, 04:40 AM
|
#13
|
|
Guru
Registered: Nov 2002
Location: Durham, England
Distribution: Fedora Core 4
Posts: 1,565
Rep:
|
The last publically available specs for the office file formats were for Office 97.
I'm afraid the address you found for the start of the document will change from file to file. Your best bet is libwv.
|
|
|
|
09-07-2004, 05:34 AM
|
#14
|
|
LQ Newbie
Registered: Aug 2004
Posts: 18
Original Poster
Rep:
|
Thank mhearn's help, but what's libwv, where can I get it?
As you say, I haven't found any document for Office versions after 97.
|
|
|
|
09-07-2004, 08:00 AM
|
#15
|
|
Guru
Registered: Nov 2002
Location: Durham, England
Distribution: Fedora Core 4
Posts: 1,565
Rep:
|
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 07:06 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|