You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Document-Processing/Word/Word-Library/NET/Support-File-Formats.md
+16-16Lines changed: 16 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ documentation: UG
8
8
9
9
# Supported File Formats in .NET Word Library
10
10
11
-
Syncfusion<sup>®</sup> .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.
11
+
Syncfusion<sup>®</sup> .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 }}.
12
12
13
13
The following table describes the supported file formats and their conversions in DocIO.
14
14
@@ -19,25 +19,25 @@ The following table describes the supported file formats and their conversions i
Copy file name to clipboardExpand all lines: Document-Processing/Word/Word-Library/NET/Working-With-OLE-Objects.md
+59-1Lines changed: 59 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ platform: document-processing
5
5
control: DocIO
6
6
documentation: UG
7
7
---
8
-
# Working with OLE Objects
8
+
# Working with OLE Objects in Word Library
9
9
10
10
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:
11
11
@@ -480,6 +480,64 @@ End Sub
480
480
481
481
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/Paragraphs/Remove-ole-object).
482
482
483
+
### Preserve embedded Ole image as normal image
484
+
485
+
Essential<sup>®</sup> 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).
486
+
487
+
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.
488
+
489
+
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.
490
+
491
+
The following code example shows how to preserve embedded Ole image as normal image in a Word document.
'Sets flag to preserve embedded Ole image as normal image while opening document
529
+
document.Settings.PreserveOleImageAsImage = True
530
+
'Loads or opens an existing Word document
531
+
document.Open("Template.docx")
532
+
'Saves and closes the Word Document
533
+
document.Save("Sample.docx", FormatType.Docx)
534
+
document.Close()
535
+
{% endhighlight %}
536
+
537
+
{% endtabs %}
538
+
539
+
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/Paragraphs/Ole-image-as-normal-image).
540
+
483
541
## Online Demo
484
542
485
543
* 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).
0 commit comments