Skip to content
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

Sample Requrest about Word Web,Word Javascript API 1.7 #4430

Open
qingfusheng opened this issue Mar 19, 2024 · 8 comments
Open

Sample Requrest about Word Web,Word Javascript API 1.7 #4430

qingfusheng opened this issue Mar 19, 2024 · 8 comments
Assignees
Labels
Area: Word Issue related to Word add-ins Needs: attention 👋 Waiting on Microsoft to provide feedback Type: product feature request Office JS ideas that should be posted to aka.ms/m365dev-suggestions (formerly User Voice.) Type: product question Question about the Office Add-ins platform or Office JavaScript APIs

Comments

@qingfusheng
Copy link

Describe your scenario
Word Web Addin,Word Javascript API Preview,Office2019,版本号2402,17328.20184

What is the problem to solve?

  1. 我想知道如何同时设置中文字体和英文字体,因为很多格式同时要求了中英文。
  2. 我想知道有没有关于 Word 中 交叉引用(Cross Reference)相关的API(I can't find it and I need the function);
  3. 有没有列表相关的示例,即涉及一二三级标题的编号问题。
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs: triage 🔍 New issue, needs PM on rotation to triage ASAP label Mar 19, 2024
@AlexJerabek AlexJerabek added Area: Word Issue related to Word add-ins Type: doc request Request for new documentation or updates/enhancements to existing documentation Needs: attention 👋 Waiting on Microsoft to provide feedback and removed Needs: triage 🔍 New issue, needs PM on rotation to triage ASAP labels Mar 19, 2024
@ElizabethSamuel-MSFT ElizabethSamuel-MSFT added the Status: in backlog Issue is being tracked in the backlog but timeline for resolution is unknown label Mar 19, 2024
@ElizabethSamuel-MSFT
Copy link
Contributor

ElizabethSamuel-MSFT commented Mar 19, 2024

Thanks for asking about this. We've added this to our documentation backlog (internal item 8843657).

@ElizabethSamuel-MSFT
Copy link
Contributor

Regarding item 2, see if fields do what you need (maybe FieldType Ref?). The actual field type likely depends on what type of reference you insert - consider trying various types in the Word UI to see what field type is set. There are restrictions with using fields (see the Remarks for Word.Range.insertField).

Regarding item 3, we have List examples showing level numbering (e.g., Word.List.setLevelNumbering). You should be able to apply this to paragraphs using heading styles.

Let us know whether or not this helped, or if you have further questions.

We still need to investigate item 1.

Thanks.

@qingfusheng
Copy link
Author

Thank you very much for your response, sincerely.

  1. Regarding the second question, thank you for your explanation. I have successfully created a bookmark and used the InsertField function to insert a reference, which has been very helpful for me.

  2. As for the third question, my scenario involves adding styles for first, second, and third level headings in the Word Style pane (Home → Styles). This will involve automatic numbering of styles. However, upon examining the properties of Style and Style.ParagraphFormat, I found that the properties related to lists are read-only. The Paragraph class does have a startNewList() function, but I'm unsure if this will help with my requirement because what I need is to set numbering properties for Style.

@ElizabethSamuel-MSFT
Copy link
Contributor

@qingfusheng For item 1, can you provide some more details about this, including one or two examples of formats that require 2 fonts at the same time? Thanks.

@ElizabethSamuel-MSFT ElizabethSamuel-MSFT added Needs: author feedback Waiting for author (creator) of Issue to provide more info and removed Needs: attention 👋 Waiting on Microsoft to provide feedback labels May 3, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the Status: no recent activity Issue or PR is stale (no recent activity) label May 7, 2024
@qingfusheng
Copy link
Author

Regarding to item1, it may be used in Chinese writing, especially when the content contains both Chinese and English, and the formats for both Chinese and English fonts are specified separately. In Word applications, applying Chinese fonts first and then English fonts may solve the problem. I want to incorporate this requirement into the style Editing, so it may be necessary to specify both Chinese and English fonts simultaneously. (Style editing in Word applications supports simultaneous editing of both Chinese and English fonts)

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs: attention 👋 Waiting on Microsoft to provide feedback and removed Status: no recent activity Issue or PR is stale (no recent activity) Needs: author feedback Waiting for author (creator) of Issue to provide more info labels May 8, 2024
@ElizabethSamuel-MSFT ElizabethSamuel-MSFT removed the Status: in backlog Issue is being tracked in the backlog but timeline for resolution is unknown label May 8, 2024
@ElizabethSamuel-MSFT
Copy link
Contributor

Hi @qingfusheng Thanks for your clarification. I'm transferring this to the product repo office-js for the feature crew to take a look.

Thanks.

@ElizabethSamuel-MSFT ElizabethSamuel-MSFT transferred this issue from OfficeDev/office-js-docs-reference May 8, 2024
@ElizabethSamuel-MSFT ElizabethSamuel-MSFT added Type: product question Question about the Office Add-ins platform or Office JavaScript APIs and removed Type: doc request Request for new documentation or updates/enhancements to existing documentation labels May 8, 2024
@ElizabethSamuel-MSFT
Copy link
Contributor

@shanshanzheng-dev Can you take a look? Thanks.

@yilin4
Copy link

yilin4 commented May 9, 2024

@qingfusheng Hi, Word.Style(https://learn.microsoft.com/en-us/javascript/api/word/word.style?view=word-js-preview) APIs just provide to set single font. If you have this need, we would like to suggest you go to https://techcommunity.microsoft.com/t5/microsoft-365-developer-platform/idb-p/Microsoft365DeveloperPlatform to ask a new question. Feature requests on it are considered when we go through our planning process.

@ElizabethSamuel-MSFT ElizabethSamuel-MSFT added the Type: product feature request Office JS ideas that should be posted to aka.ms/m365dev-suggestions (formerly User Voice.) label May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Word Issue related to Word add-ins Needs: attention 👋 Waiting on Microsoft to provide feedback Type: product feature request Office JS ideas that should be posted to aka.ms/m365dev-suggestions (formerly User Voice.) Type: product question Question about the Office Add-ins platform or Office JavaScript APIs
Projects
None yet
Development

No branches or pull requests

5 participants