gpt4 book ai didi

c# - aspose.word 只返回第一个表和部分

转载 作者:太空宇宙 更新时间:2023-11-03 11:04:13 24 4
gpt4 key购买 nike

我有 office word 2013 .docx 文件,其中有很多部分和表格。我不知道为什么像下面这样的所有集合都返回单个项目,而我的 .docx 中有很多项目?

  Document document = new Document(filePath);
int sectionsCount=document.Sections.Count;
int firstSectionTablesCount=document.FirstSection.Body.Tables.Count;

谢谢

最佳答案

这是我的错,因为我没有申请许可证,我只得到了第一个表和部分 ID 文档。

申请执照:

        Aspose.Words.License license=new License();
license.SetLicense("Aspose.Words.lic");

关于c# - aspose.word 只返回第一个表和部分,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16523856/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com