Add a Caption to a Table or Figure in OpenXml

前端 未结 2 459
攒了一身酷
攒了一身酷 2021-01-28 03:58

I\'m trying to create this structure in OpenXml:

2条回答
  •  春和景丽
    2021-01-28 04:30

    Use this: http://www.microsoft.com/en-us/download/details.aspx?id=5124

    (Productivity tool) - to inspect word document and see what they are made up of.

    Put here is the code:

     SimpleField sf = new SimpleField(new Run(new Text("Figure 1")));
    

    To actually link anything, you need to set sf's instruction property.

提交回复
热议问题
Table 1 - Some Text 1