質問

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.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top