我有 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/