LinqReportEngine执行BuildReport时,出现异常:Tag 'T' is not well-formed. Token 'T' is unexpected

您好!在使用Aspose.Words(24.2.0)执行 LinqReportEngine的BuildReport时,出现异常:Tag ‘T’ is not well-formed. Token ‘T’ is unexpected

Word文件内容包含了"<T"这样的内容,导致解析时出现了异常,在不修改文件内容的情况,我应该怎么处理呢?



LinqReportDoc.docx (10.2 KB)

@cqhg90258
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): WORDSNET-26872

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

The issues you have found earlier (filed as WORDSNET-26872) have been fixed in this Aspose.Words for .NET 24.6 update also available on NuGet.

1 Like

image.png (46.4 KB)

升级到Aspose.Words 24.6后,如果内容中有:“<<” 时还是会抛出异常,这是什么原因呢

@cqhg90258 您能在这里提供文件进行测试吗?

LinqReportDoc.docx (10.5 KB)

@cqhg90258 我将与团队讨论并回复您。

@cqhg90258 遗憾的是,报告引擎标签时无法忽略这一点。唯一的办法是将 << 和 >> 替换为不同的引号,用于与 Reporting Engine 无关的地方,并在执行后将其返回。

好的,明白了,我想法把内容处理下