- Home
- Forum
- ASP.NET Core - EJ 2
- How to control and set some settings in Microsoft Word by using essential file formats for Java?
How to control and set some settings in Microsoft Word by using essential file formats for Java?
Hi Syncfusion Team:
I have a few questions about Word document processing:
Question 1: how to control and set the first line of a paragraph to indent two characters in Microsoft Word?
Question 2: how to control and set the Chinese font and Western Font in a paragraph of Microsoft Word? To be specific, a sentence in a paragraph can be written in both Chinese and English, with "黑体" in Chinese and "Times New Roman" in English.
Question 3: how to control Microsoft Word to get the total number of pages occupied by a WSection?
Looking forward to your reply, thank you.
SIGN IN To post a reply.
1 Reply
LB
Lokesh Baskar
Syncfusion Team
July 13, 2021 05:44 PM UTC
Hi Bingxueyinlian,
Thank you for contacting Syncfusion support.
|
Queries |
Details | |
|
How to control and set the first line of a paragraph to indent two characters in Microsoft Word? |
Please refer the below UG documentation to set indent for the paragraphs. https://help.syncfusion.com/java-file-formats/word-library/working-with-paragraph#applying-paragraph-formatting | |
|
How to control and set the Chinese font and Western Font in a paragraph of Microsoft Word? |
Please refer the below code snippet to set Chinese font and Western Font for a paragraph text range.
| |
|
How to control Microsoft Word to get the total number of pages occupied by a WSection? |
The Word document is a flow document in which contents will not be preserved page by page; instead, the contents will be preserved sequentially section by section. Each section may extend to various pages based on its contents like table, text, images etc.
Word viewer/editor renders the contents of the Word document page by page dynamically when opened for viewing or editing and this page wise rendered information will not be preserved in the document level as per the Word file format specification.
Whereas Essential DocIO(JAVA) is a non-UI component that provides a full-fledged document object model to manipulate the Word document contents. Hence currently it is not feasible to get the total number of pages occupied by a WSection in Word document using DocIO(JAVA). |
Please let us know if you have any other questions.
Regards
Lokesh B
SIGN IN To post a reply.
- 1 Reply
- 2 Participants
-
BI bingxueyinlian
- Jul 12, 2021 11:36 PM UTC
- Jul 13, 2021 05:44 PM UTC