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

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

问题描述

我要为订单打印创建报告,此报告将打印在卷轴打印机上,这意味着报告的页面高度取决于动态创建的行数。

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厘米和高度应该基于行数详细。有时报表打印区域为5c.m。有时是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:


  • 报表头部分中设置头信息。

  • 不要使用页眉部分。

  • code>

  • 不要使用页脚 li>
  • 将页面顶部和底部的页边距设置为最小,如果可以将它们设置为 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报表页面高度运行时设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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