Crystal Reports 11-仅在具有数据的组标题中添加了无用的空白页 [英] Crystal Reports 11 - Useless blank page is added with just group headers that have data

查看:79
本文介绍了Crystal Reports 11-仅在具有数据的组标题中添加了无用的空白页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个奇怪的问题,在使用Crystal Reports之前从未见过。

I have a weird problem I have never seen before using Crystal Reports.

我为一家生成200多页的银行构建了一个复杂的PDF月度报告。规格花了几个月的时间与客户进行调整,但现在可以正常使用,显示了所有应有的数据,所有数据都正确排序并带有正确的标题。

I built a complex PDF monthly report for a bank that generates over 200 pages. The specifications took months to adjust with the client but it works perfectly now, showing all the data it's supposed to, all sorted right and with the right headers.

原因是报告在显示数据之前很少和看似随机地插入准空白页面。这些页面并非完全空白,我的所有标题(包括组标题)都显示了,但没有详细信息。正确的数据将在以后显示几页,但是无论我如何使用Section Expert,这些无用的页面都会在报告中弹出。为了清楚起见,标题和详细信息未分开。标头在带有正确数据的页面中也可以很好地显示,它们只是复制到之前的多余空白页面。

But for some reason the report inserts quasi-blank pages rarely and seemingly randomly before it shows data. These pages aren't entirely blank, all my headers including group headers show, but no details. The correct data shows up a couple of pages later but these useless pages keep popping up in the report no matter what I do with Section Expert. To be clear the headers and the details aren't separated. The headers also display fine in the page with the right data, they just duplicate to the extra blank pages before that.

这里是一个示例:

在我的任何部分中,除了最上层的数据外,都没有选中插入空白页框,该框可以正常工作,但是这些多余的页未插入该级别的每个组的末尾。有时将它们随机插入连贯部分的中间。

NO "insert blank page" box is checked in any of my sections except the uppermost level of data, which works fine, but these extra pages are not inserted at the end of each group for that level. They are inserted randomly sometimes right in the middle of a coherent section.

我还验证了保持在一起选项,并检查了包括细节在内的4个最低级别,因此我认为数据太大而无法容纳在同一页面上带有标题,但问题很少见,是随机的,并且当出现时数据完全溢出(如本例中的第3页)。
并且选中所有这些框并没有什么改变。

I also verified the "Keep Together" option, and it is checked for the 4 lowest levels including the details, so I considered data too big to fit on the same page with its headers but the probleme is rare, random and the data overflows perfectly when it does appear (as on page 3 in my example). And checking all those boxes off didn't change anything.

没有抑制公式,唯一被抑制的部分是GH1和GH2,但它们被抑制了一直无条件地我尝试在没有数据的情况下向标题添加条件抑制公式,但问题是有数据。标头似乎只是无用的重复。

There are no suppression formulas and the only suppressed sections are GH1 and GH2, but they are suppressed all the time, unconditionally. I tried adding a conditionnal suppression formula to the headers if there is no data, but the problem is, there is data. The headers just seem to be duplicated uselessly.

问题似乎与标头值的任何特定变化无关。在我的示例中,当报表达到特定投资组合的普通股权益时,它会更改,但是当另一个投资组合显示其普通股时,报告不会发生。然后,我检查了数据源中的数据,在发生这种情况的数据行和没有发生这种情况的数据行之间,所有数据都是一致的。

The problem doesn't seem tied to any specific change in header value. In my example it changes when the report hits Common Stock Equities for a certain portfolio but doesn't occur when another portfolio displays its Common Stock. And I check the data in my data source, everything is consistent between the rows of data that this happens to and those that don't.

如何摆脱这些多余的页面。有人知道我的报告中发生了什么吗?

I ran out of ideas on how to get rid of these extra pages. Anyone know what's happening in my report?

谢谢大家。

推荐答案

尝试切换保持分组在一起以查看分组是否有效。通过右键单击组,选择更改组(调出组专家),然后在选项标签上,您可以找到该选项。

Try toggling 'Keep Group Together' for the groups to see if it has any effect. You'll find the option by right clicking on the group, choose 'Change Group' (to bring up the Group Expert), and on options tab.

由于更容易看到专家中的保持在一起,因此常常忽略此选项。

This option is often overlooked since 'Keep Together' in the Section Expert is more visible.

(您也许还想看看关闭保持在一起以了解它如何影响您的报告)

(You may also want to look at turning off 'Keep Together' to see how that affects your report)

这篇关于Crystal Reports 11-仅在具有数据的组标题中添加了无用的空白页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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