Xceed中的动态单元格

问题描述 投票:0回答:1

我有一个列表框中的项目列表,我试图将其动态插入到Word文档的表中,Word中的表只有一行,但是如果列表框中有多个项目,我需要添加更多行。 >

我目前正在像这样将项目添加到表中("Item Description"是我用字设置的自定义属性:]

            template.AddCustomProperty(new Xceed.Document.NET.CustomProperty("Item Description", item.ProdName));
            template.AddCustomProperty(new Xceed.Document.NET.CustomProperty("Quantity", item.Quantity));
            template.AddCustomProperty(new Xceed.Document.NET.CustomProperty("Unit Price", item.Price));
            template.AddCustomProperty(new Xceed.Document.NET.CustomProperty("Total Per Item", Total ));

我已经完成了研究,但到目前为止我什么都找不到,希望有人可以向正确的方向引导我

谢谢您的帮助。

我有一个列表框中的项目列表,我试图将其动态插入到Word文档的表中,Word中的表有一行,但是如果...中有多个项目,我需要它添加更多行...

c# winforms ms-word docx xceed
1个回答
0
投票

最后,我自己弄清楚了。我将项目插入表中,如下所示:

© www.soinside.com 2019 - 2024. All rights reserved.