Simplify/ Clean up XML of a DOCX word document

前端 未结 4 429
甜味超标
甜味超标 2021-02-04 02:40

I have a Microsoft Word Document (docx) and I use Open XML SDK 2.0 Productivity Tool to generate C# code from it.

I want to programmatically insert some database values

4条回答
  •  余生分开走
    2021-02-04 03:10

    I do not know of a way to cleanup the XML, but I've always used #placeholder for my placeholder text and that seems to stay in one run more than any other placeholder text I've tried in the past. It seems the longer the placeholder text, the more likely it is to be split into multiple runs.

提交回复
热议问题