Crystal Report 页面高度运行时设置 [英] Crystal Report page height runtime setup

查看:19
本文介绍了Crystal Report 页面高度运行时设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想为订单打印"创建一个报告,该报告将在卷筒打印机上打印,这意味着报告的页面高度取决于动态创建的行数.

I want to create a report for "Order print" and this report will be printed on a roll printer, this mean that the page height of the report depends on the number of rows which are created dynamically.

页面宽度为 8 厘米.和高度应该基于详细的行数.有时报告打印区域为 5 厘米.有时是 20 厘米.或任何其他测量.

Width of the page is 8 c.m. and height should be based on number of rows in detail. Sometimes report print area is 5c.m. sometimes it is 20 c.m. or any other measurement.

我想知道如何配置页面设置"来动态改变水晶报表的高度.

I want to know how to configure the "Page Setup" to change the height of the crystal report dynamically.

请帮忙解决问题.

推荐答案

我觉得这个解决方案可能有用:

I think this solution can be useful:

  • Report Header 部分中设置您的标题信息.
  • 不要使用 Page Header 部分.
  • Report Footer部分设置您的页脚信息.
  • 不要使用 Page Footer 部分.
  • 将页面顶部和底部的边距设置为最小,如果可能,将它们设置为 0.
  • Set your header information in the Report Header section.
  • Don't use Page Header section.
  • Set your footer information in the Report Footer section.
  • Don't use Page Footer section.
  • Set margins of top and bottom of page to minimum and if it's possible set them to 0.

使用此解决方案,您将获得如下报告:

With this solution you will have a report like this:

+------------------+     
|  Header Section  |    | 
+------------------+    | Page 1
| Detail row 1     |    |
| Detail row 2     |    |
| Detail row 3     |    / ------
| Detail row 4     |    
| Detail row 5     |    |
| Detail row 6     |    | Page 2
| Detail row 7     |    |
| Detail row 8     |    |
| Detail row 9     |    / ------
| Detail row 10    |    
| Detail row 11    |    |
: Detail row ...   :
| Detail row last  |    | Last Page
+------------------+    |
|  Footer Section  |    |
+------------------+    /

这篇关于Crystal Report 页面高度运行时设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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