Skip to content

SEO-172101-Links-With-Redirects-Word-Library #113

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: hotfix/hotfix-v22.2.5
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion java-file-formats/word-library/word-file-formats.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ 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.The WordprocessingML is the markup language used by the Microsoft Office Word to store its DOCX documents.
[Office Open XML](https://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.The WordprocessingML is the markup language used by the Microsoft Office Word to store its DOCX documents.

DocIO supports the following WordprocessingML:

Expand Down
5 changes: 3 additions & 2 deletions java-file-formats/word-library/working-with-bookmarks.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ platform: java-file-formats
control: Word Library
documentation: UG
---

# Working with Bookmarks

A bookmark identifies a location or a selection of text within a document that you can name and identify for future reference.
Expand Down Expand Up @@ -406,12 +407,12 @@ As per Microsoft Word behavior, you cannot replace the bookmark contents when th

Case 1

![Bookmark start and end present in different tables](WorkingwithBookmarks_images/WorkingwithBookmarks_img1.jpeg)
![Bookmark start and end present in different tables](workingwithbookmarks_images/java-file-formats-word-library-different-tables.jpeg)


Case 2

![Bookmark start placed outside table and end in table](WorkingwithBookmarks_images/WorkingwithBookmarks_img2.jpeg)
![Bookmark start placed outside table and end in table](WorkingwithBookmarks_images/java-file-formats-word-library-outside-table.jpeg)


The following code example shows how to replace a specified bookmark content by using `replaceBookmarkContent` method in Word document.
Expand Down
12 changes: 6 additions & 6 deletions java-file-formats/word-library/working-with-fields.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ document.close();

IF field compares two values and updates the field result with true text, when comparison succeeds otherwise false text.

To learn more about IF field and its syntax in Microsoft Word, refer to the [MSDN article](https://support.office.com/en-au/article/Field-codes-IF-field-9f79e82f-e53b-4ff5-9d2c-ae3b22b7eb5e#)
To learn more about IF field and its syntax in Microsoft Word, refer to the [MSDN article](https://support.microsoft.com/en-us/office/field-codes-if-field-9f79e82f-e53b-4ff5-9d2c-ae3b22b7eb5e?ui=en-us&rs=en-us&ad=us#)

The following code example explains how to add an If field to a Word document.

Expand Down Expand Up @@ -337,7 +337,7 @@ private WordDocument createDocument() throws Exception

By executing the above code example, it generates output Word document as follows.

![Output document after applied Number format for SEQ field](WorkingWithFields_images/SEQField_NumberFormat.png)
![Output document after applied Number format for SEQ field](workingwithfields_images/java-file-formats-word-library-numberformat.png)

### Refer Bookmark
You can refer the sequence field elsewhere in the document by including bookmark name through `BookmarkName` property. The referred sequence field may be present anywhere in the Word document, but not beyond the respective bookmark end.
Expand Down Expand Up @@ -372,7 +372,7 @@ document.close();

By executing the above code example, it generates output Word document as follows.

![Output document of Bookmark referred in SEQ field](WorkingWithFields_images/SEQField_Bookmark.png)
![Output document of Bookmark referred in SEQ field](workingwithfields_images/java-file-formats-word-library-bookmark.png)

### Reset numbering
You can reset the numbering for sequence field (\r) using `ResetNumber` property and reset the numbering based on heading level (\s) in the Word document using `ResetHeadingLevel` property.
Expand Down Expand Up @@ -508,7 +508,7 @@ private WordDocument createDocument() throws Exception

By executing the above code example, it generates output Word document as follows.

![Output of reset numbering in SEQ field](WorkingWithFields_images/SEQField_ResetNumbering.png)
![Output of reset numbering in SEQ field](workingwithfields_images/java-file-formats-word-library-resetnumbering.png)

### Repeat nearest number
You can insert the closest preceding sequence number (\c) using `RepeatNearestNumber` property.
Expand Down Expand Up @@ -600,7 +600,7 @@ private WordDocument createDocument()throws Exception

By executing the above code example, it generates output Word document as follows.

![Output of repeating Nearest number of SEQ field](WorkingWithFields_images/SEQField_RepeatNearestNumber.png)
![Output of repeating Nearest number of SEQ field](workingwithfields_images/java-file-formats-word-library-repeatnearestnumber.png)

### Hide
You can hide the field result of the sequence field using `HideResult` property.
Expand Down Expand Up @@ -691,7 +691,7 @@ private WordDocument createDocument() throws Exception

By executing the above code example, it generates output Word document as follows.

![Output after hiding the sequence field](WorkingWithFields_images/SEQField_Hide.png)
![Output after hiding the sequence field](workingwithfields_images/java-file-formats-word-library-hide.png)

### Next Sequence number
You can insert the next sequence number for the specified items using `InsertNextNumber` property. This is the default.
Expand Down
4 changes: 2 additions & 2 deletions java-file-formats/word-library/working-with-mail-merge.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ You can create a template document with merge fields by using any Word editor ap

The following screenshot shows how to insert a merge field in the Word document by **using the Microsoft Word.**

![Word template document](MailMerge_images/MailMerge_template.png)
![Word template document in Java File Formats Word Library](mailmerge_images/java-file-formats-word-library-template.png)

You need to add a prefix (“Image:”) to the merge field name for merging an image in the place of a merge field.

Expand Down Expand Up @@ -81,7 +81,7 @@ document.close();

By executing the previous code example, it generates the resultant Word document as follows.

![Mail merge Word document](MailMerge_images/MailMerge_output.png)
![Mail merge Word document in Java File Formats Word Library](mailmerge_images/java-file-formats-word-library-output.png)

## Simple Mail merge

Expand Down
2 changes: 1 addition & 1 deletion java-file-formats/word-library/working-with-shapes.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ document.close();
Word library now allows you to create or group multiple shapes, pictures, text boxes as a group shape in Word document (DOCX) and preserve it as in DOCX and WordML format conversions.

You can create a document with group shapes by using Microsoft Word. It provides an option to group a set of shapes and images as a single shape and a group shape as individual item.
![Create Group shape in Microsoft Word](Working-with-Shapes_images/Working-with-Shapes_img1.jpeg)
![Create Group shape in Java File Formats Microsoft Word](working-with-shapes_images/java-file-formats-word-library-grouping-shapes.jpeg)

**Key Features:**

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ document.close();
Content type properties refers the metadata stored in a Word document, such as author name, subject, and company. DocIO represents metadata with MetaProperty instance and you can access in the Word document (DOCX, WordML) by using the ContentTypeProperties collection of WordDocument class.

The following screenshots shows the content type property in the input Word document.
![Resultant output Word document](WorkingwithWordDocument_images/QuickPart.png)
![Resultant output in Java File Format Word document](workingwithworddocument_images/java-file-formats-word-library-quickpart.png)

N> You can use Content Type Properties only in documents that are saved in the DOCX or WordML Format.

Expand Down