Delphi 2006 附带的好评如潮的报告

发布于 2024-07-23 05:54:59 字数 509 浏览 3 评论 0原文

有一个软件使用 BDE 进行数据库活动。

数据库的设计非常笨拙。

我必须构建一些将使用该软件生成的数据的自定义报告。

我需要根据一些条件跳过一些记录。

例如,如果 Field4Field5 = 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

沒落の蓅哖 2024-07-30 05:54:59

如果 .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...

一场信仰旅途 2024-07-30 05:54:59

您始终可以对数据源使用查询,例如(无论如何我不知道您的表结构)

select distinct * from table where field <> '0' 

you can always use query for your datasource, something like (i dunno about your table structure anyway)

select distinct * from table where field <> '0' 
念三年u 2024-07-30 05:54:59

您可以在此处找到旧版本的文档,其中包含示例,但它应该很漂亮与您的版本兼容

You can find documentation here, with examples, to an older version but it should be pretty compatible with your version

扬花落满肩 2024-07-30 05:54:59

别为此责怪我。 我从未使用过 Rave Report,但这可能是你最后的手段。

select CASE When (Field4>Field5) Then Field1 Else '' END AS Field1, ..... from Table where (Field4 <> 0 AND Field5<>0) OR (Field1>Field2)

Don't blame me for this. I have never used Rave Report but this can be your last resort.

select CASE When (Field4>Field5) Then Field1 Else '' END AS Field1, ..... from Table where (Field4 <> 0 AND Field5<>0) OR (Field1>Field2)
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文