Content deleted Content added
No edit summary |
Citation bot (talk | contribs) Added date. | Use this bot. Report bugs. | Suggested by Dominic3203 | Category:Computer file formats | #UCB_Category 209/326 |
||
(111 intermediate revisions by 87 users not shown) | |||
Line 1:
{{short description|Filename extension}}
{{Infobox file format
| name = Word Document
| icon = .doc icon.svg
| iconcaption = Icon as used in [[Microsoft Word]] 9.0 and 2002
| extension =
| mime = application/msword<ref>{{cite web |url=
|
|
|
|
|
| type code =
| uniform type = com.microsoft.word.doc<ref>{{citation |url=https://developer.apple.com/library/mac/documentation/Miscellaneous/Reference/UTIRef/UTIRef.pdf |title=Uniform Type Identifiers Reference |publisher=Apple |
|title=System-Declared Uniform Type Identifiers (Mac OS X v10.4)
|date=2008-04-08
|work=Apple Developer Connection
|publisher=Apple Inc.}}</ref>
| owner = [[Microsoft]]
| latest release version =
| latest release date = {{Start date and age|
| genre = [[document file format]]
| container for = Text, Image,Table
| contained by =
| extended from = [[Compound File Binary Format]] (since 97)
| extended to = [[Microsoft Office XML formats]], [[Office Open XML]]
}}
==Overview==
Binary DOC [[Computer file|file]]s often contain more [[text formatting]] information (as well as [[script (computer programming)|script]]s and undo information) than some other [[document file format]]s like [[Rich Text Format]] and [[Hypertext Markup Language]], but are usually less widely [[computer compatibility|compatible]].▼
▲
The DOC files created with [[Microsoft Word]] versions differ: Word for Windows 1.0 and 2.0 uses a format that was changed in the following Word 6.0 and 95 ("7.0") releases. DOC was changed once again into an [[Object Linking and Embedding |OLE]] and [[Compound File Binary Format |CFBF]]-based format used from Word 97 ("8.0") to 2003 ("11.0"). Word for [[MS-DOS]] used its own specific DOC format.<ref name=":0">{{Cite web |title=Configuring the File Block Settings |url=https://www.ibm.com/docs/en/strategicsm/10.1.1?topic=settings-configuring-file-block |access-date=2024-12-03 |website=www.ibm.com |language=en-us}}</ref>
In order to allow users of Word 6.0 and Word 95 to be able to open and read documents created in the newer (97–2003) format, Microsoft released the downloadable Word 97 Import Converter.<ref>{{Cite web |title=WD: Word 97 Import Converter: How to Do an Administrative Setup |url=https://helparchive.huntertur.net/document/57119 |access-date=2024-12-04 |website=helparchive.huntertur.net}}</ref><ref>{{Cite web |date=2002-10-09 |title=Q162214 - WD: How to Obtain the Word 97-2000 Import Converter |url=https://support.microsoft.com/default.aspx?scid=kb;en-us;Q162214 |url-status=dead |archive-url=https://web.archive.org/web/20021009230952/https://support.microsoft.com/default.aspx?scid=kb;en-us;Q162214 |archive-date=2002-10-09 |access-date=2024-12-03 |website=Microsoft}}</ref>
===Application support===▼
In [[Microsoft Word 2007]] and later, the binary file format was replaced as the default format by the [[Office Open XML]] (<code>.docx</code>) format, though Microsoft Word can still produce and open DOC files. Microsoft released the Office Compatibility Pack allowing users of Word 2003, 2002, 2000 and 97 to open the new format as well as edit and save them.<ref>{{Cite web |date=2006-12-06 |title=Download details: Microsoft Office Compatibility Pack for Word, Excel, and PowerPoint 2007 File Formats |url=http://www.microsoft.com/downloads/details.aspx?familyid=941b3470-3ae9-4aee-8f43-c6bb74cd1466&displaylang=en |access-date=2024-12-03 |website=Microsoft|archive-url=https://web.archive.org/web/20061206161051/http://www.microsoft.com/downloads/details.aspx?familyid=941b3470-3ae9-4aee-8f43-c6bb74cd1466&displaylang=en |archive-date=6 December 2006 }}</ref> Modern versions of Word can also open documents in the pre-97 DOC formats, but should be manually enabled in the File Block Settings.<ref name=":0" />
{{See also|Comparison of word processors}}
The DOC format is native to Microsoft Word. Other [[word processor]]s, such as [[OpenOffice.org Writer]], [[IBM Lotus Symphony]], [[Pages (iWork)|Apple Pages]] and [[AbiWord]], can also create and read DOC files, although with some limitations. [[Command line interface|Command line]] programs for [[Unix-like]] operating systems that can convert files from the DOC format to plain text or other standard formats include the [[wv (software)|wv]] library, which itself is used directly by [[AbiWord]].
Because the DOC file format was a closed specification for many years, inconsistent handling of the format persists and may cause some loss of formatting information when handling the same file with multiple word processing programs. Some specifications for Microsoft Office 97 binary file formats were published in 1997 under a restrictive license, but these specifications were removed from online download in 1999.<ref>{{cite web |url=http://marketing.openoffice.org/ooocon2006/presentations/wednesday_o3.
The format used in earlier, pre-97 ("1.0" 1989 through "7.0" 1995) versions of Word are less known, but both OpenOffice and LibreOffice contain open-source code for reading these formats. The format is probably related to the "Stream" format found in similar Excel versions.<ref>{{cite web |title=LibreOffice/core |url=https://github.com/LibreOffice/core/blob/eaeabd78585c185e58f62be49e5888ef78d94793/sw/source/ui/uno/swdetect.cxx#L68 |website=GitHub |language=en}}</ref> Word 95 also seems to have an OLE-wrapped form.
▲===Specification===
▲Because the DOC file format was a closed specification for many years, inconsistent handling of the format persists and may cause some loss of formatting information when handling the same file with multiple word processing programs. Some specifications for Microsoft Office 97 binary file formats were published in 1997 under a restrictive license, but these specifications were removed from online download in 1999.<ref>{{cite web |url=http://marketing.openoffice.org/ooocon2006/presentations/wednesday_o3.pdf |format=pdf |title=Comparing ODF and OOXML |year=2006 |accessdate=2011-05-23}}</ref><ref>{{citation |url=http://www.robweir.com/blog/2006/11/beware-of-geeks-bearing-gifts.html |title=Beware of Geeks Bearing Gifts |year=2006 |accessdate=2011-05-23}}</ref><ref>{{cite web |url=ftp://ftp.gwdg.de/pub/gnu/www/software/mswordview/MSWordView.html |title=A Word 8 converter for Unix |accessdate=2011-05-23}}</ref><ref>{{cite web |url=http://www.opennet.ru/docs/formats/wword8.html#01 |title=Microsoft Word 97 Binary File Format |accessdate=2011-05-23}}</ref> Specifications of later versions of Microsoft Office binary file formats were not publicly available. The DOC format specification was available from Microsoft on request<ref>{{cite web |url=http://www.wictorwilen.se/Post/Royaltyfree-specifications-for-Microsoft-Office-binary-file-formats.aspx |title=Royalty-free specifications for Microsoft Office binary file formats |accessdate=2011-05-23}}</ref> since 2006<ref>{{cite web |url=http://blogs.msdn.com/b/brian_jones/archive/2008/01/16/mapping-documents-in-the-binary-format-doc-xls-ppt-to-the-open-xml-format.aspx |title=Mapping documents in the binary format (.doc; .xls; .ppt) to the Open XML format |date=2008-01-16 |accessdate=2011-05-23}}</ref> under restrictive [[Reasonable and non-discriminatory licensing|RAND-Z]] terms until February 2008. [[Sun Microsystems]] and [[OpenOffice.org]] [[reverse engineering|reverse engineered]] the file format.<ref>{{cite web|url=http://sc.openoffice.org/compdocfileformat.pdf|title=Microsoft Compound Document Format|date=2007-08-07|work=[[OpenOffice.org]]}}</ref> On February 15, 2008, Microsoft released a .DOC format specification<ref name="ms-doc-specification" /><ref>{{citation |url=http://www.microsoft.com/interop/docs/officebinaryformats.mspx |archiveurl=https://web.archive.org/web/20080218212338/http://www.microsoft.com/interop/docs/officebinaryformats.mspx |title=Microsoft Office Binary (doc, xls, ppt) File Formats |date=2008-02-15 |archivedate=2008-02-18}}</ref><ref>{{cite web|url=http://download.microsoft.com/download/0/B/E/0BE8BDD7-E5E8-422A-ABFD-4342ED7AD886/Word97-2007BinaryFileFormat(doc)Specification.pdf|title=Microsoft Office Word 97 - 2007 Binary File Format Specification (*.doc)|year=2008|work=Microsoft Corporation }}</ref> under the [[Microsoft Open Specification Promise]].<ref>{{cite web|url=http://www.microsoft.com/interop/osp/default.mspx|title=Microsoft Open Specification Promise|date=March 23, 2009|work=Microsoft Corporation}}</ref><ref>{{cite web |url=http://support.microsoft.com/kb/840817/en-us |title=How to extract information from Office files by using Office file formats and schemas |accessdate=2011-05-23}}</ref> However, this specification does not describe all of the features used by DOC format and reverse engineered work remains necessary.<ref>{{cite web |url=http://www.joelonsoftware.com/items/2008/02/19.html |title=Why are the Microsoft Office file formats so complicated? (And some workarounds) |author=Joel Spolsky |accessdate=2011-05-23 |archiveurl=https://web.archive.org/web/20131014090710/http://joelonsoftware.com/items/2008/02/19.html |archivedate=2013-10-14}}</ref> Since 2008 the specification has been updated several times; the last change was made in January 2017.
== Other .doc file formats ==
Some historical documentations may use the DOC filename extension for plain-text
==See also==
* [[docx]], the file format used by modern versions of Word
*
* [[Dominant design]]
Line 53 ⟶ 61:
== External links ==
*[http://msdn.microsoft.com/en-us/library/cc313105(v=office.12).aspx DOC
*[http://sc.openoffice.org/compdocfileformat.pdf Microsoft Compound Document Format] - [[OpenOffice.org]]
{{Office document file formats}}
|