如何在组中的n条记录后插入分页符? [英] How to insert a page break after n records in a group?

查看:73
本文介绍了如何在组中的n条记录后插入分页符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

配置(请不要笑):使用的技术是:

configuration (Please don't laught ) : the technologies in use are :

  • 水晶报表6.0.1.135
  • VB6

问题:我有一个带有子报告的报告.我在子报表上遇到一个问题:当子报表到达页面底部时,最后两行(记录)被主报表页脚隐藏".

Question : I have a report with a subreport. I am facing an issue on the subreport : when the subreport reaches the bottom of the page, the last 2 lines (records) are "hidden" by the main report Footer.

我精确地指出,隐藏记录的数量取决于页脚的高度.一种解决方法是删除/隐藏页脚,但这在业务决策中是不可接受的(必须打印页码).

I precise that the number of hidden records depends on the footer hight. A workaround is to delete/hide the footer, but this is not acceptable from business decision (page number must be printed).

我怀疑这是一个错误.

我正在尝试通过在子报表的20条记录之后插入一个分页符来解决此问题.我正在努力做到这一点,有人以此为线索吗?

I am trying to work around it by inserting a page break after let's say 20 records of the subreport. I am struggling to do that, anyone as a clue on this ?

推荐答案

我解决了这个问题:

右键单击概念"窗格

在专家"部分中,选择要插入分页符的组标题"或详细信息".选中分页符之前"或分页符之后"(在示例中为法文,即"Nouvelle page avant"/"Nouvelle pageaprès")

On the Expert Section select the Group Header or Details you want to insert page break. Tick the Page Break Before or Page Break After ( in french in the example, Nouvelle page avant / Nouvelle page après)

您将获得一个可以在其中输入用于分页符的公式的区域(必须返回boolean,当为true时,将发生分页符)您可以在其中输入公式:

You get an area where you can enter a formula that will be used for the page break ( it must return a boolean , when true , the page break occurs) There you can enter a formula :

此公式可以引用魔术"(在Crystal Report中就存在)关键字.

This formula can refers to "magic" (in the sense of they exists in Crystal Report) keywords.

例如,下面的公式强制每50组分页,但最后一组则不强制分页(以避免出现空白页).

The formula below for example forces a page break every 50 Groups, but not for the last group (to avoid a blanck page).

Remainder(GroupNumber,50) = 0   And Not ONLASTRECORD

存在相同的魔术关键字:

The same magic keywords exists :

RecordNumber

GroupNumber RecordNumber 显然是Crystal Report提供的变量.

GroupNumber and RecordNumber are variables provided by Crystal Report obviously.

如果任何人都可以指出此旧版本Crystal的文档链接,

If anyone can point out a link with documentation for this old version of Crystal, I would be helpful

这篇关于如何在组中的n条记录后插入分页符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆