Line Height Resize on Report
Line Height Resize on Report
(OP)
I am trying to resize a line height in a report detail based on a resized text control height, but I cant seem to get it. Any ideas to do this?
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS Contact USThanks. We have received your request and will respond promptly. Come Join Us!Are you a
Computer / IT professional? Join Tek-Tips Forums!
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail. Posting Guidelines |
Line Height Resize on Report
|
Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.
Here's Why Members Love Tek-Tips Forums:
Register now while it's still free!
Already a member? Close this window and log in.
RE: Line Height Resize on Report
PRINT(?DETAIL)
PRINT(?LINEDETAIL)
See the Source code in te embeds.
I hope to serve you the answer.
Eduardo
RE: Line Height Resize on Report
I will give it a trial.
Tuz
RE: Line Height Resize on Report
Doesn't Report$?Detail{PROP:Height} = <New Height> work?
Or, are you talking about Report$?TextBox{PROP:LineHeight} = <New Height>? PROP:LineHeight is a READ ONLY property for text boxes.
Regards
RE: Line Height Resize on Report
I am trying to do this on the report where I have a text control that is set on resize mode, so the height of the text control is dynamic based on the number of characters on it.
However , I have been trying to resize a a vertical line to re- align with the text control height that haven't seemed to work for me yet.
May be am putting this on the wrong embed position. I have my code under process manager Take Record just before the PRINT(RPT:Detail) is called.
LineCount# = Report$?POL:CoverSummary{PROP:LineCount}
Report$?Line:CSRH{Prop:Height} = Report$?Line:CSRH{Prop:Height} + LineCount#
Will be gratefull for any help
Tuz
RE: Line Height Resize on Report
Here is my code, for those who might use such an idea
SetTarget(Report)
Report$?Line:CSRH{Prop:Height} = Report$?Line:CSRH{Prop:Height} + Report$?POL:CoverSummary{PROP:LineCount} * 300
SetTarget()
!Report$?POL:CoverSummary{PROP:LineCount}
!Gets the number of lines in a text control
RE: Line Height Resize on Report
You do not need SETTARGET() if you are using Report$.
And, it should be ::
CODE
since 300 will not work for all fonts.
You can fine tune the 50 based on the font you use.
Regards
RE: Line Height Resize on Report
Apparently it seems to work now. Still using SetTarget(Report), without SetTarget the report is falling to resize my lines,
Thanks for tips about fonts.
Tuz