在 Crystal Report 中设置详细信息部分的大小 [英] Set size of detail section in Crystal Report

查看:18
本文介绍了在 Crystal Report 中设置详细信息部分的大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 VS2008 中使用水晶报表生成账单报表.其中,详细信息部分的大小是动态的.即取决于记录的数量,它会发生变化.因此,如果我有 10 条记录,则报告视图是完整页面,即 k ..但是如果我在详细信息部分有 2 条记录,则整个页面页脚部分会粘到详细信息页面..所以整个对齐方式正在发生变化

I m generating Bill report using crystal report in VS2008..in that, details section size is dynamic. i.e. depend on number of records, it changes. so if I've 10 records the report view is full page that is k ..but if i have 2 records in details sections, then whole page footer section getting stick to details page..so whole alignment is getting change

所以有没有办法将详细信息部分设置为固定,即 10 条记录,如果记录超过更多,则同一页面上的所有记录和剩余数据将转到下一页,即报表页脚、页脚.

so is there any way to set details section fixed i.e. for 10 records and if records exceed more, then all records on same page and remaining data will go on next page i.e report footer,page footer.

水晶报表有设置吗

推荐答案

好的,我可以给你一些提示,告诉你如何达到你想要的结果.

Ok, i can give you some tips on how you can approach your desired outcome.

Crystal Reports 引擎具有以下特点.

The Crystal Reports engine has the following characteristics.

  1. 报告标题仅显示在第一页的顶部.
  2. 页眉显示在每一页的顶部(在第一页上,它位于报告页眉下方).
  3. 报告页脚仅出现一次,位于最后一页详细信息部分的底部.
  4. 页脚显示在每个页面的底部.
  1. The Report Header appears on the top side of the first page only.
  2. The Page Header appears on the top side of every page (on the first page it is under the Report Header).
  3. The Report Footer appears only once, on the bottom side of the detail section on the last page.
  4. The Page Footer appears on the bottom side of every page.

每个部分都有一个功能,可让您在不需要时将其隐藏.可以通过右键单击要抑制的部分的栏并从出现的菜单中按抑制选项来完成.

There is a capability in every section that allows you to suppress it if you don't need it. It can be done by right clicking the bar of the section that you want to suppress and pressing the suppress choice from the menu that will appear.

考虑以下两种情况.

如果您想实现第一种情况,请将页脚的高度更改为仅允许在详细信息部分显示 10 条记录的值,在页脚中包含所有页脚信息并取消报表页脚.如果您想要相同的结果但页脚信息仅出现在最后一页,请右键单击页脚栏并选择部分专家.从那里,按 Suppress CheckBox 旁边的 x+2 符号并在此处添加以下代码.

If you want to achieve the first case, change the height of the Page Footer to a value that will allow only 10 records to show on the Details section, include all the footer information in the Page Footer and suppress the Report Footer. If you want the same result but with the footer information appearing only on the last page, right click the bar of the Page Footer and select Section Expert. From there, press the x+2 sign next to the Suppress CheckBox and add the following code there.

if pagenumber <> totalpagecount then
    true
else
    false

如果您想实现第二种情况,请将页脚的高度更改为一个值,该值将只允许在详细信息部分显示 10 条记录,并将所有页脚信息包含在 报告页脚 部分.

If you want to achieve the second case, change the height of the Page Footer to a value which will allow only 10 records to show on the Details section and include all the footer information in the Report Footer section.

在这两种情况下,报告标题都被禁止.

这篇关于在 Crystal Report 中设置详细信息部分的大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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