Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用ReportingEngine生成报告时,如果传入的数据源是List,那么模板中的变量应该怎么填写 #107

Open
jeremyliu17 opened this issue Apr 18, 2024 · 1 comment

Comments

@jeremyliu17
Copy link

jeremyliu17 commented Apr 18, 2024

List<TestItem> testItems = testitemMapper.selectList(null);
ReportingEngine engine = new ReportingEngine();
engine.buildReport(doc, testItems, "ts");

如上采用mybatis方法获取的list数据,传入报告中,在报告模板中该怎么获取表中的数据,表列字段如图
企业微信截图_1713418470193
模板中的字段如图,mapper获取的是list,如何在模板中表示呢,这样写存在报错
企业微信截图_17134186347063

@AlexNosk
Copy link

@jeremyliu17 不幸的是,目前还不清楚问题是什么。 您能否附上您的模板文档(不是屏幕截图)、示例数据、当前和预期的输出文档? 这将有助于我们更好地了解您的要求。

PS:获得支持的主要场所是 Aspose.Words 支持论坛。 所以最好在那里发布问题。
https://forum.aspose.com/c/words/8/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants