简体   繁体   中英

How to implement variable height detail band in QuickReports

Delphi 7 and 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? 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

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. The answer to that is to enclose the expression in { } (eg. "{expression}") and assign it to the Lines property.

Set RemoveBlankLines to True, AutoStretch to True, AutoSize to False.

I always use a TQRExprMemo . Set AutoSize to True , AutoStretch to True , and IIRC there's a property to delete/suppress blank lines. I've used this frequently to produce mailing labels, address blocks on letters, and so forth.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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