Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Line Height Resize on Report

Line Height Resize on Report

Line Height Resize on Report

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?

RE: Line Height Resize on Report

Sometimes when I have these problems. use more than one Detail. The one I put the data and the other (f.e. ?linedetail), I have only line, which print control according to a condition.
See the Source code in te embeds.
I hope to serve you the answer.

RE: Line Height Resize on Report

Thanks Ed,

I will give it a trial.


RE: Line Height Resize on Report

Hi Tuz,

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.


RE: Line Height Resize on Report

Hi Shankar,

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


RE: Line Height Resize on Report

I got it working. my SetTarget(Report) was placed in the wrong embed point

Here is my code, for those who might use such an idea

Report$?Line:CSRH{Prop:Height} = Report$?Line:CSRH{Prop:Height} +  Report$?POL:CoverSummary{PROP:LineCount} * 300

!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 ::


Report$?Line:CSRH{Prop:Height} = Report$?Line:CSRH{Prop:Height} +  (Report$?POL:CoverSummary{PROP:LineCount} * Report$?POL:CoverSummary{PROP:LineHeight}) + 50

since 300 will not work for all fonts.

You can fine tune the 50 based on the font you use.


RE: Line Height Resize on Report

Thanks Shankar,

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.


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

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.

Join Us             Close