倍数报告的报告中的Fastreport错误

问题描述

我创建了一个包含多个报告的报告。 在查询中,我将宏用于where子句。

select * from tbl1 where &conditions order by id

个人报告工作正常。 该报告运行正确。当我想使用语句创建多报表时,有时会出现问题。

frxReport1.LoadFromFile('report.fr3');
frxReport1.PrepareReport(False);

在PrepareReport中,它会通知

sql错误...令牌未知ORDER

。顺序对应于sql排序依据”。

看到FDMonitor宏丢失了。

select * from tbl1 where order by id

ResourceOptions.MacroCreate和MacroExpand设置为True。

所有嵌入式报告(至少10个)都包含宏。有些正确地添加到了多重报告中,有些则没有。为什么?

我正在使用Delphi 10.3和Fastreport 6.8 Enterprise 我等待评论

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)