<img src="https://solution-community.wps.cn/uploads/post/4Q1tMBQ8GcJ.png" alt="image.png"/>
<img src="https://solution-community.wps.cn/uploads/post/4Q1tTSFeqh9.png" alt="image.png"/>
怎么通过sdk来实现,目的不仅是为了设置字体的样式,
主要是为了方便生成大纲,生成目录用。
<img src="https://solution-community.wps.cn/uploads/post/4Q1tMBQ8GcJ.png" alt="image.png"/>
<img src="https://solution-community.wps.cn/uploads/post/4Q1tTSFeqh9.png" alt="image.png"/>
怎么通过sdk来实现,目的不仅是为了设置字体的样式,
主要是为了方便生成大纲,生成目录用。
你好,可以通过调用PasteHtml()来实现,传入
...
等html的标准标签来控制即可文档:
https://solution.wps.cn/docs/client/api/Word/Range.html#pastehtml
实现效果:
<img src="https://solution-community.wps.cn/uploads/post/4Q1TiGKdUMN.png" alt="image.png"/>