Delphi 2006 附带的好评如潮的报告
有一个软件使用 BDE 进行数据库活动。
数据库的设计非常笨拙。
我必须构建一些将使用该软件生成的数据的自定义报告。
我需要根据一些条件跳过一些记录。
例如,如果 Field4 和 Field5 = 0,则不应打印该记录,但如果 Field1 > 则不应打印该记录。 同一记录的 Field2,则仅应打印Field1,而不其他字段。
我怎样才能获得这份狂欢报告?
即使在 Rave Report 中,我也尝试在打印之前实现这一目标,但由于缺乏这部分的适当文档,我无法取得任何进展。 如果有人可以指出我在哪里可以找到足够的文档以及一些如何对打印前和打印后事件进行编程的示例,我也许能够解决我的问题。
There is a software which is using BDE for its database activities.
The database is very awkwardly designed.
I have to build a few custom reports that will use the data generated by this software.
I have a need to skip a few records based on a few conditions.
Like for example if Field4 and Field5 = 0 then that record should not be printed but if Field1 > Field2 of the same record then only Field1 should be printed not other fields.
How can I achieve this Rave Report?
I have tried to achieve this with before print even in Rave Report but due to lack of proper documentation on this part I have not been able to make any headway. If someone can point me to where I can find enough documentation and a few example of how to program Before Print and After Print event I may be able to solve my problem.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
如果 .rav 未嵌入到可执行文件中(是的,这是可能的),您可以修改数据视图并替换原始数据视图以直接数据库数据视图。 因此,如果程序只是触发报告而无需进一步参数化,您可以修改报告......在可视化编辑器的帮助和 Nevrona 站点中,有一些关于 rave 脚本引擎的文档。
当然,Nevrona 需要做更好的文档......
If the .rav is not embedded in the executable (yes, it's possible), you can modify the dataview and substitute the original ones to direct database dataviews. So, you can modify the report if the program just fire the report without further parametrization...... There is some documentation on the script engine of rave, in the help of visual editor and in the Nevrona site.
Of course, Nevrona needs to do better documentation...
您始终可以对数据源使用查询,例如(无论如何我不知道您的表结构)
you can always use query for your datasource, something like (i dunno about your table structure anyway)
您可以在此处找到旧版本的文档,其中包含示例,但它应该很漂亮与您的版本兼容
You can find documentation here, with examples, to an older version but it should be pretty compatible with your version
别为此责怪我。 我从未使用过 Rave Report,但这可能是你最后的手段。
Don't blame me for this. I have never used Rave Report but this can be your last resort.