一个应该创建一个编号列表,另一个应该创建一个项目符号列表,如本网站所示
http://sharepointweblog.blogspot.com/2009/07/open-xml-insert-bullets-and-numbering.html
但两者都有编号..为什么?
另外.. 使用 openXML 以编程方式创建 word doc 似乎非常痛苦。. 是否有任何好的参考资料可以帮助解释创建基本 word doc?(一些文字,一些要点)..
Paragraph paraBullet1 = new Paragraph(
new ParagraphProperties(
new ParagraphStyleId() { Val = "ListParagraph" },
new NumberingProperties(
new NumberingLevelReference() { Val = 0 },
new NumberingId() { Val = 1 })),
new Run(new Text("List 1"))
) { RsidParagraphAddition = "005F3962", RsidParagraphProperties = "00330DA9", RsidRunAdditionDefault = "00330DA9" };
Paragraph paraTest2 = body.AppendChild(paraBullet1);
Paragraph paraBullet2 = new Paragraph(
new ParagraphProperties(
new ParagraphStyleId() { Val = "ListParagraph" },
new NumberingProperties(
new NumberingLevelReference() { Val = 0 },
new NumberingId() { Val = 2 })),
new Run(new Text("List 2"))
) { RsidParagraphAddition = "00031711", RsidParagraphProperties = "00031711", RsidRunAdditionDefault = "00031711" };
Paragraph paraTest2x = body.AppendChild(paraBullet2);