简体   繁体   English

如何在QuickReports中实现可变高度明细带

[英]How to implement variable height detail band in QuickReports

Delphi 7 and QuickReports. Delphi 7和QuickReports。 Does anyone know how to implement a variable height detail band so that the area for a detail band is dynamically adjusted to best fit the loaded data from the query? 有谁知道如何实现可变高度的明细带,以便对明细带的区域进行动态调整,以最适合查询中加载的数据? Is this at all possible with QuickReports? QuickReports完全可以做到吗? If not, do you know of any product that facilitates this? 如果不是,您是否知道有任何有助于此的产品?

EDIT 编辑

Components used: TQuickRep, TQRBand, and the particular control that will hold the variable size content is TQRExpr 使用的组件:TQuickRep,TQRBand和将包含可变大小内容的特定控件是TQRExpr

EDIT 编辑

The key piece of info not included in the answer is how to assign the expression to a TQRExprMemo since it doesn't have an expression property like TQRExpr. 答案中未包含的关键信息是如何将表达式分配给TQRExprMemo,因为它没有像TQRExpr这样的表达式属性。 The answer to that is to enclose the expression in { } (eg. "{expression}") and assign it to the Lines property. 答案是将表达式括在{}中(例如“ {expression}”)并将其分配给Lines属性。

Set RemoveBlankLines to True, AutoStretch to True, AutoSize to False. 将RemoveBlankLines设置为True,将AutoStretch设置为True,将AutoSize设置为False。

I always use a TQRExprMemo . 我总是使用TQRExprMemo Set AutoSize to True , AutoStretch to True , and IIRC there's a property to delete/suppress blank lines. AutoSize设置为True ,将AutoStretchTrue ,然后IIRC可以删除/抑制空白行。 I've used this frequently to produce mailing labels, address blocks on letters, and so forth. 我经常使用它来生成邮件标签,字母上的地址块等。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM