From 39857433cbbfe286375b40758e514cdd58b34e6d Mon Sep 17 00:00:00 2001 From: Suriya Balamurugan Date: Wed, 25 Mar 2026 16:24:58 +0530 Subject: [PATCH 1/6] ES-1007016-Update Supported File format page in DocIO UG Page --- Document-Processing-toc.html | 3 -- .../Word-Library/NET/Support-File-Formats.md | 32 +++++++++---------- .../Word-Library/NET/word-file-formats.md | 2 +- 3 files changed, 17 insertions(+), 20 deletions(-) diff --git a/Document-Processing-toc.html b/Document-Processing-toc.html index 81dad01cd2..282a6b6e79 100644 --- a/Document-Processing-toc.html +++ b/Document-Processing-toc.html @@ -4999,9 +4999,6 @@
  • Word Document to EPUB Conversion
  • -
  • - Word File Formats -
  • diff --git a/Document-Processing/Word/Word-Library/NET/Support-File-Formats.md b/Document-Processing/Word/Word-Library/NET/Support-File-Formats.md index 8913ea7724..aa370aa91f 100644 --- a/Document-Processing/Word/Word-Library/NET/Support-File-Formats.md +++ b/Document-Processing/Word/Word-Library/NET/Support-File-Formats.md @@ -8,7 +8,7 @@ documentation: UG # Supported File Formats in .NET Word Library -Syncfusion® .NET Word Library (DocIO) supports all major native file formats of Microsoft Word, such as DOC, DOCX, RTF, DOT, DOTX, DOCM, and more. It also supports conversion for major native file formats to HTML, Markdown, PDF and image. +Syncfusion® .NET Word Library (DocIO) supports all major native file formats of Microsoft Word, such as {{'[DOC](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#word-binary-97-2003-format)'| markdownify }}, {{'[DOCX](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#doc-to-docx-and-docx-to-doc)'| markdownify }}, {{'[RTF](https://help.syncfusion.com/document-processing/word/word-library/net/rtf)'| markdownify }}, {{'[DOT](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#templates)'| markdownify }}, {{'[DOTX](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#templates)'| markdownify }}, {{'[DOCM](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#macros)'| markdownify }}, and more. It also supports conversion for major native file formats to {{'[HTML](https://help.syncfusion.com/document-processing/word/word-library/net/html)'| markdownify }}, {{'[Markdown](https://help.syncfusion.com/document-processing/word/word-library/net/convert-word-document-to-markdown-in-csharp)'| markdownify }}, {{'[PDF](https://help.syncfusion.com/document-processing/word/conversions/word-to-pdf/net/word-to-pdf)'| markdownify }} and {{'[image](https://help.syncfusion.com/document-processing/word/conversions/word-to-image/net/word-to-image)'| markdownify }}. The following table describes the supported file formats and their conversions in DocIO. @@ -19,25 +19,25 @@ The following table describes the supported file formats and their conversions i -DOC +{{'[DOC](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#word-binary-97-2003-format)'| markdownify }} -{{'[DOCX](https://help.syncfusion.com/document-processing/word/word-library/net/open-and-save-word-document-in-console-application#open-and-save-word-document-using-net-core-and-latest)'| markdownify }} +{{'[DOCX](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#doc-to-docx-and-docx-to-doc)'| markdownify }} -Word Processing XML (2007) +{{'[Word Processing XML (2007)](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#word-open-xml-formats-2007--later)'| markdownify }} -DOT +{{'[DOT](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#templates)'| markdownify }} -DOTX +{{'[DOTX](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#templates)'| markdownify }} -DOCM +{{'[DOCM](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#macros)'| markdownify }} -DOTM +{{'[DOTM](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#macros)'| markdownify }} {{'[ODT](https://help.syncfusion.com/document-processing/word/word-library/net/word-to-odt)'| markdownify }} @@ -62,7 +62,7 @@ DOTM -DOC +{{'[DOC](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#word-binary-97-2003-format)'| markdownify }} Yes Yes Yes @@ -79,7 +79,7 @@ DOTM Yes -{{'[DOCX](https://help.syncfusion.com/document-processing/word/word-library/net/open-and-save-word-document-in-console-application#open-and-save-word-document-using-net-core-and-latest)'| markdownify }} +{{'[DOCX](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#doc-to-docx-and-docx-to-doc)'| markdownify }} Yes Yes Yes @@ -96,7 +96,7 @@ DOTM Yes -Word Processing XML (2003) +{{'[Word Processing XML (2003)](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#word-processing-xml-xml)'| markdownify }} Yes Yes Yes @@ -113,7 +113,7 @@ DOTM Yes -Word Processing XML (2007) +{{'[Word Processing XML (2007)](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#word-open-xml-formats-2007--later)'| markdownify }} Yes Yes Yes @@ -130,7 +130,7 @@ DOTM Yes -DOT +{{'[DOT](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#templates)'| markdownify }} Yes Yes Yes @@ -147,7 +147,7 @@ DOTM Yes -DOTX +{{'[DOTX](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#templates)'| markdownify }} Yes Yes Yes @@ -164,7 +164,7 @@ DOTM Yes -DOCM +{{'[DOCM](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#macros)'| markdownify }} Yes Yes Yes @@ -181,7 +181,7 @@ DOTM Yes -DOTM +{{'[DOTM](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#macros)'| markdownify }} Yes Yes Yes diff --git a/Document-Processing/Word/Word-Library/NET/word-file-formats.md b/Document-Processing/Word/Word-Library/NET/word-file-formats.md index 64eca4befa..1c99f7cb4a 100644 --- a/Document-Processing/Word/Word-Library/NET/word-file-formats.md +++ b/Document-Processing/Word/Word-Library/NET/word-file-formats.md @@ -9,7 +9,7 @@ documentation: UG # Word File Formats in Essential® DocIO -The [Microsoft Word's](https://en.wikipedia.org/wiki/Microsoft_Word#) native file formats are DOC, DOCX, RTF, DOT, DOTX, DOCM, and DOTM. The Essential® DocIO supports the following major native file formats. +The [Microsoft Word's](https://en.wikipedia.org/wiki/Microsoft_Word#) native file formats are {{'[DOC](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#word-binary-97-2003-format)'| markdownify }}, {{'[DOCX](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#doc-to-docx-and-docx-to-doc)'| markdownify }}, {{'[RTF](https://help.syncfusion.com/document-processing/word/word-library/net/rtf)'| markdownify }}, {{'[DOT](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#templates)'| markdownify }}, {{'[DOTX](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#templates)'| markdownify }}, {{'[DOCM](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#macros)'| markdownify }}, and {{'[DOTM](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#macros)'| markdownify }}. The Essential® DocIO supports the following major native file formats. 1. Word Open XML formats (2007 & later) 2. Word Processing XML (.xml) From bfcad4f5802ce337e671cb1e2e462ff3d628b554 Mon Sep 17 00:00:00 2001 From: Suriya Balamurugan Date: Wed, 25 Mar 2026 16:55:31 +0530 Subject: [PATCH 2/6] ES-1007016-Fixed front matter validation broken link fixed --- .../Word/Word-Library/NET/word-file-formats.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Document-Processing/Word/Word-Library/NET/word-file-formats.md b/Document-Processing/Word/Word-Library/NET/word-file-formats.md index 1c99f7cb4a..2aade89770 100644 --- a/Document-Processing/Word/Word-Library/NET/word-file-formats.md +++ b/Document-Processing/Word/Word-Library/NET/word-file-formats.md @@ -199,7 +199,7 @@ The following code example shows how to convert the Word document into Word Proc {% tabs %} -{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/DocIO-Examples/main/Word-file-formats/Convert-Word-to-WordML/.NET/Convert-Word-to-WordML/Program.cs" %} +{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/DocIO-Examples/main/WordML-conversion/Convert-Word-to-WordML/.NET/Convert-Word-to-WordML/Program.cs" %} FileStream fileStreamPath = new FileStream("Template.docx", FileMode.Open, FileAccess.Read, FileShare.ReadWrite); //Opens an existing document from file system through constructor of WordDocument class using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Docx)) @@ -232,13 +232,13 @@ document.Close() {% endtabs %} -You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/Word-file-formats/Convert-Word-to-WordML). +You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/WordML-conversion/Convert-Word-to-WordML). The following code example shows how to convert the Word Processing XML document into Word document. {% tabs %} -{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/DocIO-Examples/main/Word-file-formats/Convert-WordML-to-Word/.NET/Convert-WordML-to-Word/Program.cs" %} +{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/DocIO-Examples/main/WordML-conversion/Convert-WordML-to-Word/.NET/Convert-WordML-to-Word/Program.cs" %} FileStream fileStreamPath = new FileStream("Template.xml", FileMode.Open, FileAccess.Read, FileShare.ReadWrite); //Opens an existing document from file system through constructor of WordDocument class using (WordDocument document = new WordDocument(fileStreamPath, FormatType.WordML)) @@ -271,7 +271,7 @@ document.Close() {% endtabs %} -You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/Word-file-formats/Convert-WordML-to-Word). +You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/WordML-conversion/Convert-WordML-to-Word). ### Unsupported elements in Word to Word Processing XML conversion: From d0de4d9ca2ea27c4480f71dba29007622c6c5dbe Mon Sep 17 00:00:00 2001 From: Suriya Balamurugan Date: Wed, 25 Mar 2026 17:00:01 +0530 Subject: [PATCH 3/6] ES-1007016-Reverted the changes due to file path validation issue --- Document-Processing-toc.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Document-Processing-toc.html b/Document-Processing-toc.html index 282a6b6e79..81dad01cd2 100644 --- a/Document-Processing-toc.html +++ b/Document-Processing-toc.html @@ -4999,6 +4999,9 @@
  • Word Document to EPUB Conversion
  • +
  • + Word File Formats +
  • From c13adb88267128b1056518bbdaf66f3cdde2e7b2 Mon Sep 17 00:00:00 2001 From: Suriya Balamurugan Date: Fri, 27 Mar 2026 18:21:30 +0530 Subject: [PATCH 4/6] ES-1007016-Revamp word file format page --- Document-Processing-toc.html | 2 +- .../Word-Library/NET/Support-File-Formats.md | 2 +- .../NET/Working-With-OLE-Objects.md | 58 ++ .../Word-Library/NET/Working-with-Macros.md | 1 - .../Word-Library/NET/word-file-formats.md | 813 +++++------------- 5 files changed, 254 insertions(+), 622 deletions(-) diff --git a/Document-Processing-toc.html b/Document-Processing-toc.html index 282a6b6e79..442eca9ef3 100644 --- a/Document-Processing-toc.html +++ b/Document-Processing-toc.html @@ -4804,7 +4804,7 @@ Working with Document Conversion
    • - Word File Formats + Word File Formats Conversions
    • Word to PDF diff --git a/Document-Processing/Word/Word-Library/NET/Support-File-Formats.md b/Document-Processing/Word/Word-Library/NET/Support-File-Formats.md index aa370aa91f..8506b508a8 100644 --- a/Document-Processing/Word/Word-Library/NET/Support-File-Formats.md +++ b/Document-Processing/Word/Word-Library/NET/Support-File-Formats.md @@ -8,7 +8,7 @@ documentation: UG # Supported File Formats in .NET Word Library -Syncfusion® .NET Word Library (DocIO) supports all major native file formats of Microsoft Word, such as {{'[DOC](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#word-binary-97-2003-format)'| markdownify }}, {{'[DOCX](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#doc-to-docx-and-docx-to-doc)'| markdownify }}, {{'[RTF](https://help.syncfusion.com/document-processing/word/word-library/net/rtf)'| markdownify }}, {{'[DOT](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#templates)'| markdownify }}, {{'[DOTX](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#templates)'| markdownify }}, {{'[DOCM](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#macros)'| markdownify }}, and more. It also supports conversion for major native file formats to {{'[HTML](https://help.syncfusion.com/document-processing/word/word-library/net/html)'| markdownify }}, {{'[Markdown](https://help.syncfusion.com/document-processing/word/word-library/net/convert-word-document-to-markdown-in-csharp)'| markdownify }}, {{'[PDF](https://help.syncfusion.com/document-processing/word/conversions/word-to-pdf/net/word-to-pdf)'| markdownify }} and {{'[image](https://help.syncfusion.com/document-processing/word/conversions/word-to-image/net/word-to-image)'| markdownify }}. +Syncfusion® .NET Word Library (DocIO) supports all major native file formats of Microsoft Word, such as {{'[DOC](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#word-binary-97-2003-format)'| markdownify }}, {{'[DOCX](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#word-document-docx)'| markdownify }}, {{'[RTF](https://help.syncfusion.com/document-processing/word/word-library/net/rtf)'| markdownify }}, {{'[DOT](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#word-97-2003-template-dot)'| markdownify }}, {{'[DOTX](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#word-template-dotx)'| markdownify }}, {{'[DOCM](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#macros-docm-dotm)'| markdownify }}, and more. It also supports conversion for major native file formats to {{'[HTML](https://help.syncfusion.com/document-processing/word/word-library/net/html)'| markdownify }}, {{'[Markdown](https://help.syncfusion.com/document-processing/word/word-library/net/convert-word-document-to-markdown-in-csharp)'| markdownify }}, {{'[PDF](https://help.syncfusion.com/document-processing/word/conversions/word-to-pdf/net/word-to-pdf)'| markdownify }} and {{'[image](https://help.syncfusion.com/document-processing/word/conversions/word-to-image/net/word-to-image)'| markdownify }}. The following table describes the supported file formats and their conversions in DocIO. diff --git a/Document-Processing/Word/Word-Library/NET/Working-With-OLE-Objects.md b/Document-Processing/Word/Word-Library/NET/Working-With-OLE-Objects.md index d5d2a66ca3..a1d927fc11 100644 --- a/Document-Processing/Word/Word-Library/NET/Working-With-OLE-Objects.md +++ b/Document-Processing/Word/Word-Library/NET/Working-With-OLE-Objects.md @@ -480,6 +480,64 @@ End Sub You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/Paragraphs/Remove-ole-object). +### Preserve embedded Ole image as normal image + +Essential® DocIO keeps the entire document contents (paragraphs, images, tables and all other supported items along with the formatting) in main memory. So, there is a chance for "Out of memory exception" when the memory utilization exceeds the maximum level. For further information, please refer [here](https://support.syncfusion.com/kb/article/3998/why-does-out-of-memory-exception-arise-on-processing-large-size-documents-in-essential). + +You can reduce the memory usage in DocIO DOM when the Word document has embedded Ole image of large file size. You can preserve these embedded Ole images as normal images by setting [PreserveOleImageAsImage](https://help.syncfusion.com/cr/document-processing/Syncfusion.DocIO.DLS.Settings.html#Syncfusion_DocIO_DLS_Settings_PreserveOleImageAsImage) property of Settings class as true, before opening the Word document. + +If [PreserveOleImageAsImage](https://help.syncfusion.com/cr/document-processing/Syncfusion.DocIO.DLS.Settings.html#Syncfusion_DocIO_DLS_Settings_PreserveOleImageAsImage) flag is enabled, DocIO internally skips to read the embedded Ole image of large file size (.bin), instead DocIO reuses the Ole image from Word document as normal image for the same visual appearance. This will reduce the memory usage in DocIO DOM and resolves “Out of memory exception” at some cases. + +The following code example shows how to preserve embedded Ole image as normal image in a Word document. + +{% tabs %} + +{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/DocIO-Examples/main/Paragraphs/Ole-image-as-normal-image/.NET/Ole-image-as-normal-image/Program.cs" %} +//Creates a new instance of WordDocument (Empty Word Document) +using (WordDocument document = new WordDocument()) +{ + //Loads or opens an existing Word document from stream + FileStream fileStreamPath = new FileStream("Template.docx", FileMode.Open, FileAccess.Read, FileShare.ReadWrite); + // Sets flag to preserve embedded Ole image as normal image while opening document + document.Settings.PreserveOleImageAsImage = true; + //Loads or opens an existing Word document through Open method of WordDocument class + document.Open(fileStreamPath, FormatType.Automatic); + //Saves the Word document to MemoryStream. + MemoryStream stream = new MemoryStream(); + document.Save(stream, FormatType.Docx); + //Closes the Word document. + document.Close(); +} +{% endhighlight %} + +{% highlight c# tabtitle="C# [Windows-specific]" %} +//Creates an empty Word document instance +WordDocument document = new WordDocument(); +//Sets flag to preserve embedded Ole image as normal image while opening document +document.Settings.PreserveOleImageAsImage = true; +//Loads or opens an existing Word document +document.Open("Template.docx"); +//Saves and closes the Word document +document.Save("Sample.docx", FormatType.Docx); +document.Close(); +{% endhighlight %} + +{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %} +'Creates an empty Word document instance +Dim document As New WordDocument() +'Sets flag to preserve embedded Ole image as normal image while opening document +document.Settings.PreserveOleImageAsImage = True +'Loads or opens an existing Word document +document.Open("Template.docx") +'Saves and closes the Word Document +document.Save("Sample.docx", FormatType.Docx) +document.Close() +{% endhighlight %} + +{% endtabs %} + +You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/Paragraphs/Ole-image-as-normal-image). + ## Online Demo * Explore how to insert an OLE Object into the Word document using the .NET Word Library (DocIO) in a live demo [here](https://document.syncfusion.com/demos/word/insertoleobject#/tailwind). diff --git a/Document-Processing/Word/Word-Library/NET/Working-with-Macros.md b/Document-Processing/Word/Word-Library/NET/Working-with-Macros.md index d560a89682..a81756c247 100644 --- a/Document-Processing/Word/Word-Library/NET/Working-with-Macros.md +++ b/Document-Processing/Word/Word-Library/NET/Working-with-Macros.md @@ -30,7 +30,6 @@ using (FileStream fileStream = new FileStream("Template.dotm", FileMode.Open, Fi { //Saves the Word document to stream. document.Save(stream, FormatType.Word2013Docm); - } } } } diff --git a/Document-Processing/Word/Word-Library/NET/word-file-formats.md b/Document-Processing/Word/Word-Library/NET/word-file-formats.md index 2aade89770..643be6750a 100644 --- a/Document-Processing/Word/Word-Library/NET/word-file-formats.md +++ b/Document-Processing/Word/Word-Library/NET/word-file-formats.md @@ -6,10 +6,11 @@ control: DocIO documentation: UG --- - # Word File Formats in Essential® DocIO -The [Microsoft Word's](https://en.wikipedia.org/wiki/Microsoft_Word#) native file formats are {{'[DOC](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#word-binary-97-2003-format)'| markdownify }}, {{'[DOCX](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#doc-to-docx-and-docx-to-doc)'| markdownify }}, {{'[RTF](https://help.syncfusion.com/document-processing/word/word-library/net/rtf)'| markdownify }}, {{'[DOT](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#templates)'| markdownify }}, {{'[DOTX](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#templates)'| markdownify }}, {{'[DOCM](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#macros)'| markdownify }}, and {{'[DOTM](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#macros)'| markdownify }}. The Essential® DocIO supports the following major native file formats. +[Microsoft Word](https://learn.microsoft.com/en-us/office/compatibility/office-file-format-reference#file-formats-that-are-supported-in-word) supports multiple file formats that differ in structure, capabilities, and intended usage. Essential® DocIO provides read and write support for modern XML-based formats (DOCX, DOTX, DOCM, DOTM), Word Processing XML formats (WordML), and binary Word documents (DOC, DOT). + +This documentation categorizes the major Word file formats into: 1. Word Open XML formats (2007 & later) 2. Word Processing XML (.xml) @@ -17,9 +18,9 @@ The [Microsoft Word's](https://en.wikipedia.org/wiki/Microsoft_Word#) native fil ## Word Open XML formats (2007 & later) -[Office Open XML](http://en.wikipedia.org/wiki/Office_Open_XML#) (OOXML or Microsoft Open XML (MOX)) is a zipped, new XML-based file format introduced by Microsoft in Office 2007 applications. WordprocessingML is the markup language used by Microsoft Office Word to store its DOCX documents. +[Word Open XML formats](https://support.microsoft.com/en-us/office/open-xml-formats-and-file-name-extensions-5200d93c-3449-4380-8e11-31ef14555b18) (DOCX, DOTX, DOCM, DOTM) are ZIP-compressed file packages that contain multiple XML parts representing document content, styles, settings, and relationships. These documents store their content using WordprocessingML, an XML-based markup language defined by the Office Open XML standard. -DocIO supports the following WordprocessingML: +Essential® DocIO supports Word Open XML documents compatible with: * Microsoft Word 2007 * Microsoft Word 2010 @@ -27,59 +28,19 @@ DocIO supports the following WordprocessingML: * Microsoft Word 2016 * Microsoft Word 2019 -The following code example explains how to create a new Word document with few lines of code. - -N> Refer to the appropriate tabs in the code snippets section: ***C# [Cross-platform]*** for ASP.NET Core, Blazor, Xamarin, UWP, .NET MAUI, and WinUI; ***C# [Windows-specific]*** for WinForms and WPF; ***VB.NET [Windows-specific]*** for VB.NET applications. - -{% tabs %} - -{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/DocIO-Examples/main/Word-file-formats/Create-Docx-format-Word-document/.NET/Create-Docx-format-Word-document/Program.cs" %} -//Creates a new instance of WordDocument (Empty Word Document) -using (WordDocument document = new WordDocument()) -{ - //Adds a section and a paragraph to the document - document.EnsureMinimal(); - //Appends text to the last paragraph of the document - document.LastParagraph.AppendText("Hello World"); - //Saves the Word document to MemoryStream - MemoryStream stream = new MemoryStream(); - //Saves and closes the destination document to MemoryStream - document.Save(stream, FormatType.Docx); - document.Close(); -} -{% endhighlight %} +### Word Document (DOCX) -{% highlight c# tabtitle="C# [Windows-specific]" %} -//Creates an instance of WordDocument Instance (Empty Word Document) -WordDocument document = new WordDocument(); -//Add a section & a paragraph in the empty document -document.EnsureMinimal(); -//Append text to the last paragraph of the document -document.LastParagraph.AppendText("Hello World"); -//Save and close the Word document -document.Save("Sample.docx"); -document.Close(); -{% endhighlight %} +DOCX is the default XML-based file format introduced in Microsoft Word 2007 and is commonly used for general document processing scenarios. -{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %} -'Creates an instance of WordDocument Instance (Empty Word Document) -Dim document As New WordDocument() -'Add a section & a paragraph in the empty document -document.EnsureMinimal() -'Append text to the last paragraph of the document -document.LastParagraph.AppendText("Hello World") -'Save and close the Word document -document.Save("Sample.docx") -document.Close() -{% endhighlight %} +Click {{'[here](https://help.syncfusion.com/document-processing/word/word-library/net/getting-started#creating-a-new-word-document-with-few-lines-of-code)'| markdownify }} to learn how to create a new Word document with a few lines of code. -{% endtabs %} +### Word Template (DOTX) -You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/Word-file-formats/Create-Docx-format-Word-document). +DOTX is a Word document template. Templates are useful when you regularly produce similar types of documents, as they let you start from a ready-made structure instead of building the document from scratch each time. -### Templates +The following code example illustrates how to create the Word document template with a few lines of code. -DOTX is a Word document template. The following code snippet shows how to create the Word document template with few lines of code. +N> Refer to the appropriate tabs in the code snippets section: ***C# [Cross-platform]*** for ASP.NET Core, Blazor, Xamarin, UWP, .NET MAUI, and WinUI; ***C# [Windows-specific]*** for WinForms and WPF; ***VB.NET [Windows-specific]*** for VB.NET applications. {% tabs %} @@ -93,8 +54,8 @@ using (WordDocument document = new WordDocument()) document.LastParagraph.AppendText("Hello World"); //Saves the Word document to MemoryStream MemoryStream stream = new MemoryStream(); - //Saves and closes the destination document to MemoryStream document.Save(stream, FormatType.Dotx); + //Closes the Word document document.Close(); } {% endhighlight %} @@ -102,11 +63,11 @@ using (WordDocument document = new WordDocument()) {% highlight c# tabtitle="C# [Windows-specific]" %} //Creates an instance of WordDocument Instance (Empty Word Document) WordDocument document = new WordDocument(); -//Add a section & a paragraph in the empty document +//Adds a section and a paragraph to the document document.EnsureMinimal(); -//Append text to the last paragraph of the document +//Appends text to the last paragraph of the document document.LastParagraph.AppendText("Hello World"); -//Save and close the Word document +//Saves and closes the Word document document.Save("Sample.dotx"); document.Close(); {% endhighlight %} @@ -114,11 +75,11 @@ document.Close(); {% highlight vb.net tabtitle="VB.NET [Windows-specific]" %} 'Creates an instance of WordDocument Instance (Empty Word Document) Dim document As New WordDocument() -'Add a section & a paragraph in the empty document +'Adds a section and a paragraph to the document document.EnsureMinimal() -'Append text to the last paragraph of the document +'Appends text to the last paragraph of the document document.LastParagraph.AppendText("Hello World") -'Save and close the Word document +'Saves and closes the Word document document.Save("Sample.dotx") document.Close() {% endhighlight %} @@ -127,79 +88,32 @@ document.Close() You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/Word-file-formats/Create-Dotx-format-Word-document). -### Macros - -DOCM is a macro enabled Word document. It is same as DOCX document contains macros and scripts. The DocIO provides only preservation support for macros. The following code illustrates how to load and save a macro enabled document using the DocIO library. - -{% tabs %} - -{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/DocIO-Examples/main/Macros/Open-and-save-macro-enabled-document/.NET/Open-and-save-macro-enabled-document/Program.cs" %} -FileStream fileStreamPath = new FileStream("Template.dotm", FileMode.Open, FileAccess.Read, FileShare.ReadWrite); -//Opens an existing document from file system through constructor of WordDocument class -using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Dotm)) -{ - // Gets the table - DataTable table = GetDataTable(); - // Executes Mail Merge with groups. - document.MailMerge.ExecuteGroup(table); - //Saves the Word document to MemoryStream - MemoryStream stream = new MemoryStream(); - document.Save(stream, FormatType.Word2013Docm); - //Closes the Word document - document.Close(); -} -{% endhighlight %} - -{% highlight c# tabtitle="C# [Windows-specific]" %} -// Loads the macro-enabled template. -WordDocument document = new WordDocument("Template.dotm"); -// Gets the table -DataTable table = GetDataTable(); -// Executes Mail Merge with groups. -document.MailMerge.ExecuteGroup(table); -//Saves and closes the document -document.Save("Sample.docm", FormatType.Word2013Docm); -document.Close(); -{% endhighlight %} +### Macros (DOCM, DOTM) -{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %} -'Loads the macro-enabled template. -Dim document As New WordDocument("Template.dotm") -'Gets the table -Dim table As DataTable = GetDataTable() -'Executes Mail Merge with groups. -document.MailMerge.ExecuteGroup(table) -'Saves and closes the document -document.Save("Sample.docm", FormatType.Word2013Docm) -document.Close() -{% endhighlight %} +DOCM and DOTM are macro-enabled Word Open XML formats. DOCM represents a macro-enabled Word document, while DOTM represents a macro-enabled Word template. These formats are structurally similar to DOCX and DOTX, but additionally contain embedded VBA macro code. -{% highlight c# tabtitle="UWP" %} -//DocIO supports Mail merge execute group in Windows forms, WPF, ASP.NET, ASP.NET MVC and ASP.NET CORE platforms alone -{% endhighlight %} +Essential® DocIO allows macro-enabled Word documents to be loaded and saved with macros preserved. In addition, macros can be removed explicitly by using the +[RemoveMacros](https://help.syncfusion.com/cr/document-processing/Syncfusion.DocIO.DLS.WordDocument.html#Syncfusion_DocIO_DLS_WordDocument_RemoveMacros) method when required. -{% highlight c# tabtitle="Xamarin" %} -//DocIO supports Mail merge execute group in Windows forms, WPF, ASP.NET, ASP.NET MVC and ASP.NET CORE platforms alone -{% endhighlight %} - -{% endtabs %} - -You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/Macros/Open-and-save-macro-enabled-document). +For further information, click [here](https://help.syncfusion.com/document-processing/word/word-library/net/working-with-macros). ## Word Processing XML (.xml) -The XML format introduced in Microsoft Word 2003 was a simple, XML-based format called WordprocessingML or WordML. +Word Processing XML (WordML) is a single‑file XML format introduced in Microsoft Word 2003 to represent Word document content in XML. + The Essential® DocIO supports converting the Word document into Word Processing XML document and vice versa. -N> 1. Importing and exporting the Word Processing 2007 XML documents is supported. -N> 2. Exporting the Word Processing 2003 XML document is not supported. Whereas you can import the Word Processing 2003 XML documents and export it to other supported file formats. -N> 3. The custom XML elements present in the Word Processing 2003 XML documents will be removed automatically while importing, like latest Microsoft Word. The custom XML element is a depreciated feature in latest Microsoft Word. +N> 1. Importing and exporting Word Processing 2007 XML documents is supported. +N> 2. Exporting Word Processing 2003 XML documents is not supported. However, you can import Word Processing 2003 XML documents and export them to other supported file formats. +N> 3. Custom XML elements present in Word Processing 2003 XML documents are removed automatically during import, similar to the behavior of recent versions of Microsoft Word. Custom XML elements are a deprecated feature in newer Word versions. -The following code example shows how to convert the Word document into Word Processing XML document. +### Word to WordML + +The following code example illustrates how to convert a Word document into a Word Processing XML document. {% tabs %} -{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/DocIO-Examples/main/WordML-conversion/Convert-Word-to-WordML/.NET/Convert-Word-to-WordML/Program.cs" %} +{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/DocIO-Examples/main/Word-file-formats/Convert-Word-to-WordML/.NET/Convert-Word-to-WordML/Program.cs" %} FileStream fileStreamPath = new FileStream("Template.docx", FileMode.Open, FileAccess.Read, FileShare.ReadWrite); //Opens an existing document from file system through constructor of WordDocument class using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Docx)) @@ -215,7 +129,7 @@ using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Docx) {% highlight c# tabtitle="C# [Windows-specific]" %} //Loads an existing Word document WordDocument document = new WordDocument("Template.docx"); -//Saves the document as Word Processing ML document +//Saves the document as Word Processing XML document document.Save("WordToWordML.xml", FormatType.WordML); //Closes the document document.Close(); @@ -224,7 +138,7 @@ document.Close(); {% highlight vb.net tabtitle="VB.NET [Windows-specific]" %} 'Loads an existing Word document Dim document As New WordDocument("Template.docx") -'Saves the document as Word Processing ML document +'Saves the document as Word Processing XML document document.Save("WordToWordML.xml", FormatType.WordML) 'Closes the document document.Close() @@ -232,13 +146,15 @@ document.Close() {% endtabs %} -You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/WordML-conversion/Convert-Word-to-WordML). +You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/Word-file-formats/Convert-Word-to-WordML). + +### WordML to Word -The following code example shows how to convert the Word Processing XML document into Word document. +The following code example illustrates how to convert a Word Processing XML document into a Word document. {% tabs %} -{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/DocIO-Examples/main/WordML-conversion/Convert-WordML-to-Word/.NET/Convert-WordML-to-Word/Program.cs" %} +{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/DocIO-Examples/main/Word-file-formats/Convert-WordML-to-Word/.NET/Convert-WordML-to-Word/Program.cs" %} FileStream fileStreamPath = new FileStream("Template.xml", FileMode.Open, FileAccess.Read, FileShare.ReadWrite); //Opens an existing document from file system through constructor of WordDocument class using (WordDocument document = new WordDocument(fileStreamPath, FormatType.WordML)) @@ -252,18 +168,18 @@ using (WordDocument document = new WordDocument(fileStreamPath, FormatType.WordM {% endhighlight %} {% highlight c# tabtitle="C# [Windows-specific]" %} -// Loads an existing Word document +//Loads an existing Word document WordDocument document = new WordDocument("Template.xml"); -//Saves the Word Processing ML document as docx +//Saves the Word Processing XML document as docx document.Save("WordMLToWord.docx", FormatType.Docx); //Closes the document document.Close(); {% endhighlight %} {% highlight vb.net tabtitle="VB.NET [Windows-specific]" %} -' Loads an existing Word document +'Loads an existing Word document Dim document As New WordDocument("Template.xml") -'Saves the Word Processing ML document as docx +'Saves the Word Processing XML document as docx document.Save("WordMLToWord.docx", FormatType.Docx) 'Closes the document document.Close() @@ -271,72 +187,82 @@ document.Close() {% endtabs %} -You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/WordML-conversion/Convert-WordML-to-Word). +You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/Word-file-formats/Convert-WordML-to-Word). -### Unsupported elements in Word to Word Processing XML conversion: +### Supported elements in Word Processing XML conversion -The following table contains list of unsupported elements in Word to Word Processing XML conversion. +Word Processing XML conversion supports all common Word document elements such as paragraphs, text, tables, images, and other standard formatting elements. The following table highlights the support status of specific elements that may have limitations or behavior differences during conversion. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      ElementLimitations or Unsupported elements
      -Custom Shapes

      -Not supported

      -Embedded fonts

      -Not supported

      -Equation

      -Not supported

      -SmartArt

      -Not supported

      -WordArt

      -Not supported

      -Form Fields - -Unparsed in Word Processing 2003 XML document. -
      -Ole Object - -Unparsed in Word Processing 2003 XML document. -
      ElementWord to WordMLWord Processing 2007 XML document to WordWord Processing 2007 XML document to WordMLWord Processing 2003 XML document to Word / WordML
      Custom Shapes

      Yes

      Yes

      Yes

      Yes

      Embedded fonts

      Yes

      Yes

      Yes

      No

      Equation

      Yes

      Yes

      Yes

      No

      SmartArt

      No

      Yes

      No

      No

      WordArt

      Yes

      Yes

      Yes

      No

      Form Fields

      Yes

      Yes

      Yes

      No

      Ole Object

      Yes

      Yes

      Yes

      No

      ## Word Binary (97-2003) format -DOC is one of the classic file format of Word processing document. It is a proprietary binary format of Microsoft used in all the Microsoft Word versions. +DOC is the binary file format used in Word 97–Word 2003 and is one of the classic file formats for Word processing documents. It is a proprietary binary format developed by Microsoft that is supported across Microsoft Word versions and maintained mainly for backward compatibility. + +The Essential® DocIO library supports importing and exporting DOC format documents. -The DocIO library supports importing or exporting of DOC format and refer to the following code sample. +The following code example illustrates how to create a binary format document with a few lines of code. {% tabs %} @@ -349,23 +275,20 @@ using (WordDocument document = new WordDocument()) //Appends text to the last paragraph of the document document.LastParagraph.AppendText("Hello World"); MemoryStream stream = new MemoryStream(); - //Saves and closes the destination document to MemoryStream + //Saves and closes the Word document to MemoryStream document.Save(stream, FormatType.Doc); document.Close(); - stream.Position = 0; - //Download Word document in the browser - return File(stream, "application/msword", "BinaryDocument.doc"); } {% endhighlight %} {% highlight c# tabtitle="C# [Windows-specific]" %} //Creates an instance of WordDocument Instance (Empty Word Document) WordDocument document = new WordDocument(); -//Add a section & a paragraph in the empty document +//Adds a section and a paragraph to the document document.EnsureMinimal(); -//Append text to the last paragraph of the document +//Appends text to the last paragraph of the document document.LastParagraph.AppendText("Hello World"); -//Save and close the Word document +//Saves and closes the Word document document.Save("BinaryDocument.doc"); document.Close(); {% endhighlight %} @@ -373,91 +296,22 @@ document.Close(); {% highlight vb.net tabtitle="VB.NET [Windows-specific]" %} 'Creates an instance of WordDocument Instance (Empty Word Document) Dim document As New WordDocument() -'Add a section & a paragraph in the empty document +'Adds a section and a paragraph to the document document.EnsureMinimal() -'Append text to the last paragraph of the document +'Appends text to the last paragraph of the document document.LastParagraph.AppendText("Hello World") -'Save and close the Word document +'Saves and closes the Word document document.Save("BinaryDocument.doc ") document.Close() {% endhighlight %} -{% highlight c# tabtitle="Xamarin" %} -//Creates a new instance of WordDocument (Empty Word Document) -using (WordDocument document = new WordDocument()) -{ - //Adds a section and a paragraph to the document - document.EnsureMinimal(); - //Appends text to the last paragraph of the document - document.LastParagraph.AppendText("Hello World"); - MemoryStream stream = new MemoryStream(); - document.Save(stream, FormatType.Doc); - //Save the stream as a file in the device and invoke it for viewing - Xamarin.Forms.DependencyService.Get().SaveAndView("BinaryDocument.doc", "application/msword", stream); - //Closes the document - document.Close(); - //Please download the helper files from the below link to save the stream as file and open the file for viewing in Xamarin platform - //https://help.syncfusion.com/document-processing/word/word-library/net/create-word-document-in-xamarin#helper-files-for-xamarin -} -{% endhighlight %} - -{% highlight c# tabtitle="UWP" %} -using (WordDocument document = new WordDocument()) -{ - //Adds a section and a paragraph to the document - document.EnsureMinimal(); - //Appends text to the last paragraph of the document - document.LastParagraph.AppendText("Hello World"); - MemoryStream stream = new MemoryStream(); - //Saves the Word file to MemoryStream - await document.SaveAsync(stream, FormatType.Doc); - //Saves the stream as Word file in local machine - Save(stream, "BinaryDocument.doc"); - document.Close(); -} -//Saves the Word document -async void Save(MemoryStream streams, string filename) -{ - streams.Position = 0; - StorageFile stFile; - if (!(Windows.Foundation.Metadata.ApiInformation.IsTypePresent("Windows.Phone.UI.Input.HardwareButtons"))) - { - FileSavePicker savePicker = new FileSavePicker(); - savePicker.DefaultFileExtension = ".doc"; - savePicker.SuggestedFileName = filename; - savePicker.FileTypeChoices.Add("Word Documents", new List() { ".doc" }); - stFile = await savePicker.PickSaveFileAsync(); - } - else - { - StorageFolder local = Windows.Storage.ApplicationData.Current.LocalFolder; - stFile = await local.CreateFileAsync(filename, CreationCollisionOption.ReplaceExisting); - } - if (stFile != null) - { - using (IRandomAccessStream zipStream = await stFile.OpenAsync(FileAccessMode.ReadWrite)) - { - //Write compressed data from memory to file - using (Stream outstream = zipStream.AsStreamForWrite()) - { - byte[] buffer = streams.ToArray(); - outstream.Write(buffer, 0, buffer.Length); - outstream.Flush(); - } - } - } - //Launch the saved Word file - await Windows.System.Launcher.LaunchFileAsync(stFile); -} -{% endhighlight %} - {% endtabs %} You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/Word-file-formats/Create-Doc-format-Word-document). -### DOC to DOCX and DOCX to DOC +### DOC to DOCX -The following code shows, how to convert the DOC file into DOCX file format using DocIO +The following code example illustrates how to convert a DOC file into the DOCX file format using DocIO. {% tabs %} @@ -466,13 +320,11 @@ FileStream fileStreamPath = new FileStream("Template.doc", FileMode.Open, FileAc //Opens an existing document from file system through constructor of WordDocument class using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Doc)) { + //Saves the Word document to MemoryStream MemoryStream stream = new MemoryStream(); document.Save(stream, FormatType.Docx); //Closes the Word document document.Close(); - stream.Position = 0; - //Download Word document in the browser - return File(stream, "application/msword", "DocToWord.docx"); } {% endhighlight %} @@ -488,50 +340,19 @@ document.Close(); {% highlight vb.net tabtitle="VB.NET [Windows-specific]" %} 'Loads an existing document Dim document As New WordDocument("Template.doc", FormatType.Doc) -' Saves the binary document(.doc) as Word Document(.docx) file +'Saves the binary document(.doc) as Word Document(.docx) file document.Save("DocToWord.docx", FormatType.Docx) 'Closes the document document.Close() {% endhighlight %} -{% highlight c# tabtitle="Xamarin" %} -Assembly assembly = typeof(App).GetTypeInfo().Assembly; -//Opens an existing document from file system through constructor of WordDocument class -using (WordDocument document = new WordDocument((assembly.GetManifestResourceStream("Sample.Assets.Template.doc")), FormatType.Doc)) -{ - MemoryStream stream = new MemoryStream(); - document.Save(stream, FormatType.Docx); - //Save the stream as a file in the device and invoke it for viewing - Xamarin.Forms.DependencyService.Get().SaveAndView("DocToWord.docx", "application/msword", stream); - //Closes the Word document - document.Close(); - //Please download the helper files from the below link to save the stream as file and open the file for viewing in Xamarin platform - //https://help.syncfusion.com/document-processing/word/word-library/net/create-word-document-in-xamarin#helper-files-for-xamarin -} -{% endhighlight %} - -{% highlight c# tabtitle="UWP" %} -//"App" is the class of Portable project. -Assembly assembly = typeof(App).GetTypeInfo().Assembly; -//Opens an existing document from file system through constructor of WordDocument class -using (WordDocument document = new WordDocument((assembly.GetManifestResourceStream("Sample.Assets.Template.doc")), FormatType.Doc)) -{ - MemoryStream stream = new MemoryStream(); - await document.SaveAsync(stream, FormatType.Docx); - //Saves the stream as Word file in local machine - Save(stream, "DocToWord.docx"); - //Closes the Word document - document.Close(); -} -//Please refer the below link to save Word document in UWP platform -//https://help.syncfusion.com/document-processing/word/word-library/net/create-word-document-in-uwp#save-word-document-in-uwp -{% endhighlight %} - {% endtabs %} You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/Word-file-formats/Convert-Doc-to-Docx). -The following code shows, how to convert the DOCX file into DOC file format using DocIO +### DOCX to DOC + +The following code example illustrates how to convert a DOCX file into the DOC file format using DocIO. {% tabs %} @@ -540,20 +361,18 @@ FileStream fileStreamPath = new FileStream("Template.docx", FileMode.Open, FileA //Opens an existing document from file system through constructor of WordDocument class using (WordDocument document = new WordDocument(fileStreamPath, FormatType.Docx)) { + //Saves the Word document to MemoryStream MemoryStream stream = new MemoryStream(); document.Save(stream, FormatType.Doc); //Closes the Word document document.Close(); - stream.Position = 0; - //Download Word document in the browser - return File(stream, "application/msword", "DocxToBinary.doc"); } {% endhighlight %} {% highlight c# tabtitle="C# [Windows-specific]" %} //Loads an existing document WordDocument document = new WordDocument("Template.docx", FormatType.Docx); -//Saves the Word Document(.docx) as binary document(.doc) file +//Saves the Word document(.docx) as binary document(.doc) file document.Save("DocxToBinary.doc", FormatType.Doc); //Closes the document document.Close(); @@ -562,85 +381,73 @@ document.Close(); {% highlight vb.net tabtitle="VB.NET [Windows-specific]" %} 'Loads an existing document Dim document As New WordDocument("Template.docx", FormatType.Docx) -'Saves the Word Document(.docx) as binary document(.doc) file +'Saves the Word document(.docx) as binary document(.doc) file document.Save("DocxToBinary.doc", FormatType.Doc) 'Closes the document document.Close() {% endhighlight %} -{% highlight c# tabtitle="Xamarin" %} -Assembly assembly = typeof(App).GetTypeInfo().Assembly; -//Opens an existing document from file system through constructor of WordDocument class -using (WordDocument document = new WordDocument((assembly.GetManifestResourceStream("Sample.Assets.Template.docx")), FormatType.Docx)) +{% endtabs %} + +You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/Word-file-formats/Convert-Docx-to-Doc). + +### Word 97-2003 Template (DOT) + +DOT is the binary template file format used in Word 97–Word 2003 and is used to create new documents from an existing template. + +The following code example illustrates how to create a binary format document template with a few lines of code. + +{% tabs %} + +{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/DocIO-Examples/main/Word-file-formats/Create-Dot-format-Word-document/.NET/Create-Dot-format-Word-document/Program.cs" %} +//Creates a new instance of WordDocument (Empty Word Document) +using (WordDocument document = new WordDocument()) { + //Adds a section and a paragraph to the document + document.EnsureMinimal(); + //Appends text to the last paragraph of the document + document.LastParagraph.AppendText("Hello World"); + //Saves the Word document to MemoryStream MemoryStream stream = new MemoryStream(); - document.Save(stream, FormatType.Doc); - //Save the stream as a file in the device and invoke it for viewing - Xamarin.Forms.DependencyService.Get().SaveAndView("DocxToBinary.doc", "application/msword", stream); + document.Save(stream, FormatType.Dot); //Closes the Word document document.Close(); - //Please download the helper files from the below link to save the stream as file and open the file for viewing in Xamarin platform - //https://help.syncfusion.com/document-processing/word/word-library/net/create-word-document-in-xamarin#helper-files-for-xamarin } {% endhighlight %} -{% highlight c# tabtitle="UWP" %} -//"App" is the class of Portable project. -Assembly assembly = typeof(App).GetTypeInfo().Assembly; -//Opens an existing document from file system through constructor of WordDocument class -using (WordDocument document = new WordDocument((assembly.GetManifestResourceStream("Sample.Assets.Template.docx")), FormatType.Docx)) -{ - MemoryStream stream = new MemoryStream(); - await document.SaveAsync(stream, FormatType.Doc); - //Saves the stream as Word file in local machine - Save(stream, "DocxToBinary.doc"); - //Closes the Word document - document.Close(); -} -//Saves the Word document -async void Save(MemoryStream streams, string filename) -{ - streams.Position = 0; - StorageFile stFile; - if (!(Windows.Foundation.Metadata.ApiInformation.IsTypePresent("Windows.Phone.UI.Input.HardwareButtons"))) - { - FileSavePicker savePicker = new FileSavePicker(); - savePicker.DefaultFileExtension = ".doc"; - savePicker.SuggestedFileName = filename; - savePicker.FileTypeChoices.Add("Word Documents", new List() { ".doc" }); - stFile = await savePicker.PickSaveFileAsync(); - } - else - { - StorageFolder local = Windows.Storage.ApplicationData.Current.LocalFolder; - stFile = await local.CreateFileAsync(filename, CreationCollisionOption.ReplaceExisting); - } - if (stFile != null) - { - using (IRandomAccessStream zipStream = await stFile.OpenAsync(FileAccessMode.ReadWrite)) - { - //Write compressed data from memory to file - using (Stream outstream = zipStream.AsStreamForWrite()) - { - byte[] buffer = streams.ToArray(); - outstream.Write(buffer, 0, buffer.Length); - outstream.Flush(); - } - } - } - //Launch the saved Word file - await Windows.System.Launcher.LaunchFileAsync(stFile); -} +{% highlight c# tabtitle="C# [Windows-specific]" %} +//Creates an instance of WordDocument Instance (Empty Word Document) +WordDocument document = new WordDocument(); +//Adds a section and a paragraph to the document +document.EnsureMinimal(); +//Appends text to the last paragraph of the document +document.LastParagraph.AppendText("Hello World"); +//Saves and closes the Word document +document.Save("Sample.dot"); +document.Close(); +{% endhighlight %} + +{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %} +'Creates an instance of WordDocument Instance (Empty Word Document) +Dim document As New WordDocument() +'Adds a section and a paragraph to the document +document.EnsureMinimal() +'Appends text to the last paragraph of the document +document.LastParagraph.AppendText("Hello World") +'Saves and closes the Word document +document.Save("Sample.dot") +document.Close() {% endhighlight %} {% endtabs %} -You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/Word-file-formats/Convert-Docx-to-Doc). +You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/Word-file-formats/Create-Dot-format-Word-document). ### Saving Word document with compatibility #### Maintain existing compatibility -The following code shows, how to save Word document with same word version compatibility + +The following code example illustrates how to save a Word document with the same Word version compatibility. {% tabs %} @@ -660,9 +467,6 @@ using (WordDocument document = new WordDocument()) document.Save(stream, FormatType.Docx); //Closes the document document.Close(); - stream.Position = 0; - //Download Word document in the browser - return File(stream, "application/msword", "Sample.docx"); } {% endhighlight %} @@ -671,7 +475,7 @@ using (WordDocument document = new WordDocument()) WordDocument document = new WordDocument("Template.docx"); //Enables flag to maintain compatibility with same Word version document.SaveOptions.MaintainCompatibilityMode = true; -//Saves and close the Word document +//Saves and closes the Word document document.Save("Sample.docx"); document.Close(); {% endhighlight %} @@ -681,69 +485,19 @@ document.Close(); Dim document As WordDocument = New WordDocument("Template.docx") 'Enables flag to maintain compatibility with same Word version document.SaveOptions.MaintainCompatibilityMode = true -'Saves and close the Word document +'Saves and closes the Word document document.Save("Sample.docx") document.Close {% endhighlight %} -{% highlight c# tabtitle="Xamarin" %} -//"App" is the class of Portable project -Assembly assembly = typeof(App).GetTypeInfo().Assembly; -//Creates an empty WordDocument instance -using (WordDocument document = new WordDocument()) -{ - //Loads or opens an existing Word document from stream - Stream inputStream = assembly.GetManifestResourceStream("Sample.Assets.Template.docx"); - //Loads or opens an existing Word document through Open method of WordDocument class - document.Open(inputStream, FormatType.Automatic); - //Enables flag to maintain compatibility with same Word version - document.SaveOptions.MaintainCompatibilityMode = true; - //Creates an instance of memory stream - MemoryStream stream = new MemoryStream(); - //Saves the document to stream - document.Save(stream, FormatType.Docx); - //Closes the document - document.Close(); - //Save the stream as a file in the device and invoke it for viewing - Xamarin.Forms.DependencyService.Get().SaveAndView("Sample.docx", "application/msword", stream); -} -//Please download the helper files from the below link to save the stream as file and open the file for viewing in Xamarin platform -//https://help.syncfusion.com/document-processing/word/word-library/net/create-word-document-in-xamarin#helper-files-for-xamarin -{% endhighlight %} - -{% highlight c# tabtitle="UWP" %} -//Instantiates the File Picker -FileOpenPicker openPicker = new FileOpenPicker(); -openPicker.SuggestedStartLocation = PickerLocationId.Desktop; -openPicker.FileTypeFilter.Add(".docx"); -//Creates a storage file from FileOpenPicker -StorageFile inputStorageFile = await openPicker.PickSingleFileAsync(); -WordDocument document = new WordDocument(); -await document.OpenAsync(inputStorageFile); - -//Enables flag to maintain compatibility with same Word version -document.SaveOptions.MaintainCompatibilityMode = true; - -//Creates an instance of memory stream -MemoryStream stream = new MemoryStream(); -//Saves the Word file to MemoryStream -await document.SaveAsync(stream, FormatType.Docx); -//Saves the stream as Word file in local machine -Save(stream, "Sample.docx"); -//Closes the document -document.Close(); - -//Please refer the below link to save Word document in UWP platform -//https://help.syncfusion.com/document-processing/word/word-library/net/create-word-document-in-uwp#save-word-document-in-uwp -{% endhighlight %} - {% endtabs %} You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/Word-file-formats/Save-Word-with-compatibility). #### Save Word in old compatibility -The following code shows, how to save Word document in old compatibility using DocIO. +The following code example illustrates how to save a Word document in old compatibility using DocIO. + {% tabs %} {% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/DocIO-Examples/main/Word-file-formats/Save-Word-in-old-compatibility/.NET/Save-Word-in-old-compatibility/Program.cs" %} @@ -752,16 +506,16 @@ The following code shows, how to save Word document in old compatibility using D using (WordDocument document = new WordDocument()) { document.EnsureMinimal(); - //Append paragraph. + //Appends paragraph. document.LastParagraph.AppendText("Hello World"); //Sets the compatibility mode to Word 2007. document.Settings.CompatibilityMode = CompatibilityMode.Word2007; - //Create FileStream to save the Word file. - using (FileStream outputStream = new FileStream("Sample.docx", FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) - { - //Save the Word file. - document.Save(outputStream, FormatType.Docx); - } + //Creates an instance of memory stream + MemoryStream stream = new MemoryStream(); + //Saves the document to stream + document.Save(stream, FormatType.Docx); + //Closes the document + document.Close(); } {% endhighlight %} @@ -771,10 +525,13 @@ using (WordDocument document = new WordDocument()) using(WordDocument document = new WordDocument()) { document.EnsureMinimal(); + //Appends paragraph. document.LastParagraph.AppendText("Hello World"); //Sets the compatibility mode to Word 2007. document.Settings.CompatibilityMode = CompatibilityMode.Word2007; + //Saves and closes the Word document document.Save("Sample.docx"); + document.Close(); } {% endhighlight %} @@ -783,10 +540,13 @@ using(WordDocument document = new WordDocument()) 'Create an instance of WordDocument. Using document As New WordDocument() document.EnsureMinimal() + 'Appends paragraph. document.LastParagraph.AppendText("Hello World") - ' Sets the compatibility mode to Word 2007. + 'Sets the compatibility mode to Word 2007. document.Settings.CompatibilityMode = CompatibilityMode.Word2007 + 'Saves and closes the Word document document.Save("Sample.docx") + document.Close() End Using {% endhighlight %} @@ -800,7 +560,7 @@ Essential® DocIO process the content that are preserved in the la You can open the Word (*.doc) documents containing incremental save information without exception by setting [SkipIncrementalSaveValidation](https://help.syncfusion.com/cr/document-processing/Syncfusion.DocIO.DLS.Settings.html#Syncfusion_DocIO_DLS_Settings_SkipIncrementalSaveValidation) property of Settings class as true. Whereas the recent changes saved as incremental save information using older Microsoft Word application can't be preserved. -The following code example shows how to open a Word (*.doc) document containing incremental save information without exception. +The following code example illustrates how to open a Word (*.doc) document containing incremental save information without exception. {% tabs %} @@ -815,12 +575,9 @@ using (WordDocument document = new WordDocument()) //Loads or opens an existing Word document through Open method of WordDocument class document.Open(fileStreamPath, FormatType.Automatic); MemoryStream stream = new MemoryStream(); - //Saves and closes the destination document to MemoryStream + //Saves and closes the destination document to MemoryStream document.Save(stream, FormatType.Doc); document.Close(); - stream.Position = 0; - //Download Word document in the browser - return File(stream, "application/msword", "Sample.doc"); } {% endhighlight %} @@ -850,190 +607,8 @@ document.Save("Sample.doc", FormatType.Doc) document.Close() {% endhighlight %} -{% highlight c# tabtitle="Xamarin" %} -//"App" is the class of Portable project -Assembly assembly = typeof(App).GetTypeInfo().Assembly; -//Creates a new instance of WordDocument (Empty Word Document) -using (WordDocument document = new WordDocument()) -{ - //Loads or opens an existing Word document from stream - Stream inputStream = assembly.GetManifestResourceStream("Sample.Assets.Template.doc"); - //Sets flag to skip old file format exception while opening document - document.Settings.SkipIncrementalSaveValidation = true; - //Loads or opens an existing Word document through Open method of WordDocument class - document.Open(inputStream, FormatType.Automatic); - MemoryStream stream = new MemoryStream(); - document.Save(stream, FormatType.Doc); - //Save the stream as a file in the device and invoke it for viewing - Xamarin.Forms.DependencyService.Get().SaveAndView("Sample.doc", "application/msword", stream); - //Closes the document - document.Close(); - //Please download the helper files from the below link to save the stream as file and open the file for viewing in Xamarin platform - //https://help.syncfusion.com/document-processing/word/word-library/net/create-word-document-in-xamarin#helper-files-for-xamarin -} -{% endhighlight %} - -{% highlight c# tabtitle="UWP" %} -//"App" is the class of Portable project -Assembly assembly = typeof(App).GetTypeInfo().Assembly; -using (WordDocument document = new WordDocument()) -{ - // Loads or opens an existing Word document from stream - Stream inputStream = assembly.GetManifestResourceStream("Sample.Assets.Template.doc"); - //Sets flag to skip old file format exception while opening document - document.Settings.SkipIncrementalSaveValidation = true; - //Loads or opens an existing Word document through Open method of WordDocument class - document.Open(inputStream, FormatType.Doc); - MemoryStream stream = new MemoryStream(); - //Saves the Word file to MemoryStream - await document.SaveAsync(stream, FormatType.Doc); - //Saves the stream as Word file in local machine - Save(stream, "Sample.doc"); - document.Close(); -} -//Saves the Word document -async void Save(MemoryStream streams, string filename) -{ - streams.Position = 0; - StorageFile stFile; - if (!(Windows.Foundation.Metadata.ApiInformation.IsTypePresent("Windows.Phone.UI.Input.HardwareButtons"))) - { - FileSavePicker savePicker = new FileSavePicker(); - savePicker.DefaultFileExtension = ".doc"; - savePicker.SuggestedFileName = filename; - savePicker.FileTypeChoices.Add("Word Documents", new List() { ".doc" }); - stFile = await savePicker.PickSaveFileAsync(); - } - else - { - StorageFolder local = Windows.Storage.ApplicationData.Current.LocalFolder; - stFile = await local.CreateFileAsync(filename, CreationCollisionOption.ReplaceExisting); - } - if (stFile != null) - { - using (IRandomAccessStream zipStream = await stFile.OpenAsync(FileAccessMode.ReadWrite)) - { - //Write compressed data from memory to file - using (Stream outstream = zipStream.AsStreamForWrite()) - { - byte[] buffer = streams.ToArray(); - outstream.Write(buffer, 0, buffer.Length); - outstream.Flush(); - } - } - } - //Launch the saved Word file - await Windows.System.Launcher.LaunchFileAsync(stFile); -} -{% endhighlight %} - -{% endtabs %} - -### Preserve embedded Ole image as normal image - -Essential® DocIO keeps the entire document contents (paragraphs, images, tables and all other supported items along with the formatting) in main memory. So, there is a chance for "Out of memory exception" when the memory utilization exceeds the maximum level. For further information, please refer [here](https://support.syncfusion.com/kb/article/3998/why-does-out-of-memory-exception-arise-on-processing-large-size-documents-in-essential). - -You can reduce the memory usage in DocIO DOM when the Word document has embedded Ole image of large file size. You can preserve these embedded Ole images as normal images by setting [PreserveOleImageAsImage](https://help.syncfusion.com/cr/document-processing/Syncfusion.DocIO.DLS.Settings.html#Syncfusion_DocIO_DLS_Settings_PreserveOleImageAsImage) property of Settings class as true, before opening the Word document. - -If [PreserveOleImageAsImage](https://help.syncfusion.com/cr/document-processing/Syncfusion.DocIO.DLS.Settings.html#Syncfusion_DocIO_DLS_Settings_PreserveOleImageAsImage) flag is enabled, DocIO internally skips to read the embedded Ole image of large file size (.bin), instead DocIO reuses the Ole image from Word document as normal image for the same visual appearance. This will reduce the memory usage in DocIO DOM and resolves “Out of memory exception” at some cases. - -The following code example shows how to preserve embedded Ole image as normal image in a Word document. - -{% tabs %} - -{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/DocIO-Examples/main/Word-file-formats/Ole-image-as-normal-image/.NET/Ole-image-as-normal-image/Program.cs" %} -//Creates a new instance of WordDocument (Empty Word Document) -using (WordDocument document = new WordDocument()) -{ - //Loads or opens an existing Word document from stream - FileStream fileStreamPath = new FileStream("Template.docx", FileMode.Open, FileAccess.Read, FileShare.ReadWrite); - // Sets flag to preserve embedded Ole image as normal image while opening document - document.Settings.PreserveOleImageAsImage = true; - //Loads or opens an existing Word document through Open method of WordDocument class - document.Open(fileStreamPath, FormatType.Automatic); - MemoryStream stream = new MemoryStream(); - //Saves and closes the destination document to MemoryStream - document.Save(stream, FormatType.Docx); - document.Close(); - stream.Position = 0; - //Download Word document in the browser - return File(stream, "application/msword", "Sample.docx"); -} -{% endhighlight %} - -{% highlight c# tabtitle="C# [Windows-specific]" %} -//Creates an empty Word document instance -WordDocument document = new WordDocument(); -//Sets flag to preserve embedded Ole image as normal image while opening document -document.Settings.PreserveOleImageAsImage= true; -//Loads or opens an existing Word document -document.Open("Template.docx"); -//Saves and close the Word document -document.Save("Sample.docx", FormatType.Docx); -document.Close(); -{% endhighlight %} - -{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %} -'Creates an empty Word document instance -Dim document As New WordDocument() -'Sets flag to preserve embedded Ole image as normal image while opening document -document.Settings.PreserveOleImageAsImage = True -'Loads or opens an existing Word document -document.Open("Template.docx") -'Saves and close the Word Document -document.Save("Sample.docx", FormatType.Docx) -document.Close() -{% endhighlight %} - -{% highlight c# tabtitle="Xamarin" %} -//"App" is the class of Portable project -Assembly assembly = typeof(App).GetTypeInfo().Assembly; -//Creates a new instance of WordDocument (Empty Word Document) -using (WordDocument document = new WordDocument()) -{ - //Loads or opens an existing Word document from stream - Stream inputStream = assembly.GetManifestResourceStream("Sample.Assets.Template.docx"); - //Sets flag to preserve embedded Ole image as normal image without exception - document.Settings.PreserveOleImageAsImage = true; - //Loads or opens an existing Word document through Open method of WordDocument class - document.Open(inputStream, FormatType.Automatic); - MemoryStream stream = new MemoryStream(); - document.Save(stream, FormatType.Docx); - //Save the stream as a file in the device and invoke it for viewing - Xamarin.Forms.DependencyService.Get().SaveAndView("Sample.docx", "application/msword", stream); - //Closes the document - document.Close(); - //Please download the helper files from the below link to save the stream as file and open the file for viewing in Xamarin platform - //https://help.syncfusion.com/document-processing/word/word-library/net/create-word-document-in-xamarin#helper-files-for-xamarin -} -{% endhighlight %} - -{% highlight c# tabtitle="UWP" %} -//"App" is the class of Portable project -Assembly assembly = typeof(App).GetTypeInfo().Assembly; -using (WordDocument document = new WordDocument()) -{ - // Loads or opens an existing Word document from stream - Stream inputStream = assembly.GetManifestResourceStream("Sample.Assets.Template.docx"); - // Sets flag to preserve embedded Ole image as normal image while opening document - document.Settings.PreserveOleImageAsImage = true; - //Loads or opens an existing Word document - document.Open(inputStream, FormatType.Docx); - MemoryStream stream = new MemoryStream(); - //Saves the Word file to MemoryStream - await document.SaveAsync(stream, FormatType.Docx); - //Saves the stream as Word file in local machine - Save(stream, "Sample.docx"); - document.Close(); -} -//Please refer the below link to save Word document in UWP platform -//https://help.syncfusion.com/document-processing/word/word-library/net/create-word-document-in-uwp#save-word-document-in-uwp -{% endhighlight %} - {% endtabs %} -You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/Word-file-formats/Ole-image-as-normal-image). - ## Online Demo * Explore how to convert the Word document to Word processing XML using the .NET Word Library (DocIO) in a live demo [here](https://document.syncfusion.com/demos/word/wordtowordml#/tailwind). From 376ceee46f417120d253e7e026393f63a9829964 Mon Sep 17 00:00:00 2001 From: Suriya Balamurugan Date: Fri, 27 Mar 2026 18:31:16 +0530 Subject: [PATCH 5/6] ES-1007016-Added the missing changes --- .../Word-Library/NET/Support-File-Formats.md | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/Document-Processing/Word/Word-Library/NET/Support-File-Formats.md b/Document-Processing/Word/Word-Library/NET/Support-File-Formats.md index 8506b508a8..7dd1189f3f 100644 --- a/Document-Processing/Word/Word-Library/NET/Support-File-Formats.md +++ b/Document-Processing/Word/Word-Library/NET/Support-File-Formats.md @@ -22,22 +22,22 @@ The following table describes the supported file formats and their conversions i {{'[DOC](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#word-binary-97-2003-format)'| markdownify }} -{{'[DOCX](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#doc-to-docx-and-docx-to-doc)'| markdownify }} +{{'[DOCX](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#word-document-docx)'| markdownify }} -{{'[Word Processing XML (2007)](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#word-open-xml-formats-2007--later)'| markdownify }} +{{'[Word Processing XML (2007)](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#word-processing-xml-xml)'| markdownify }} -{{'[DOT](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#templates)'| markdownify }} +{{'[DOT](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#word-97-2003-template-dot)'| markdownify }} -{{'[DOTX](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#templates)'| markdownify }} +{{'[DOTX](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#word-template-dotx)'| markdownify }} -{{'[DOCM](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#macros)'| markdownify }} +{{'[DOCM](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#macros-docm-dotm)'| markdownify }} -{{'[DOTM](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#macros)'| markdownify }} +{{'[DOTM](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#macros-docm-dotm)'| markdownify }} {{'[ODT](https://help.syncfusion.com/document-processing/word/word-library/net/word-to-odt)'| markdownify }} @@ -79,7 +79,7 @@ The following table describes the supported file formats and their conversions i Yes -{{'[DOCX](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#doc-to-docx-and-docx-to-doc)'| markdownify }} +{{'[DOCX](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#word-document-docx)'| markdownify }} Yes Yes Yes @@ -113,7 +113,7 @@ The following table describes the supported file formats and their conversions i Yes -{{'[Word Processing XML (2007)](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#word-open-xml-formats-2007--later)'| markdownify }} +{{'[Word Processing XML (2007)](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#word-processing-xml-xml)'| markdownify }} Yes Yes Yes @@ -130,7 +130,7 @@ The following table describes the supported file formats and their conversions i Yes -{{'[DOT](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#templates)'| markdownify }} +{{'[DOT](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#word-97-2003-template-dot)'| markdownify }} Yes Yes Yes @@ -147,7 +147,7 @@ The following table describes the supported file formats and their conversions i Yes -{{'[DOTX](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#templates)'| markdownify }} +{{'[DOTX](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#word-template-dotx)'| markdownify }} Yes Yes Yes @@ -164,7 +164,7 @@ The following table describes the supported file formats and their conversions i Yes -{{'[DOCM](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#macros)'| markdownify }} +{{'[DOCM](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#macros-docm-dotm)'| markdownify }} Yes Yes Yes @@ -181,7 +181,7 @@ The following table describes the supported file formats and their conversions i Yes -{{'[DOTM](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#macros)'| markdownify }} +{{'[DOTM](https://help.syncfusion.com/document-processing/word/word-library/net/word-file-formats#macros-docm-dotm)'| markdownify }} Yes Yes Yes From 8be5be25e4902dd72c9eca71fb751361727f29cf Mon Sep 17 00:00:00 2001 From: Suriya Balamurugan Date: Fri, 27 Mar 2026 19:06:33 +0530 Subject: [PATCH 6/6] ES-1007016-Fixed duplicate h1 front matter validation issue --- .../Word/Word-Library/NET/Working-With-OLE-Objects.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Document-Processing/Word/Word-Library/NET/Working-With-OLE-Objects.md b/Document-Processing/Word/Word-Library/NET/Working-With-OLE-Objects.md index a1d927fc11..64bd072502 100644 --- a/Document-Processing/Word/Word-Library/NET/Working-With-OLE-Objects.md +++ b/Document-Processing/Word/Word-Library/NET/Working-With-OLE-Objects.md @@ -5,7 +5,7 @@ platform: document-processing control: DocIO documentation: UG --- -# Working with OLE Objects +# Working with OLE Objects in Word Library OLE (Object Linking and Embedding) objects allow embedding and linking to documents and other objects. It allows the content of one program to be used in a Word document. The Objects can be inserted in the following two ways: