INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

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.

Jobs

Reports

How can I move and resize report's objects? by vgulielmus
Posted: 12 Feb 14

This can be done using SET REPORTBEHAVIOR 90.
For resizing rectangles and pictures, the "Dinamycs" tabs from the Property window can be used.

For resizing fields or labels and for changing their position, can be used the "Other" tab from the Property window.
This tab has a "Run-time extensions" section. Here can be programmed some events.

For moving / resizing objects:
From field's properties, select "Other" tab. Down there at "Run-time extensions", click "Edit settings".
Fill the "Execute when" textbox with RENDER.
Then either edit the content of the edit box from above, either click the "Code zoom" button.

When tcMethodToken=RENDER:
tP2-Left
tP3-Top
tP4-Width
tP5-height

The values typed here overwrites the ones generated by the report.
For enlarging the width of an object with one inch, type tP4=tP4+960
For moving to the right with one inch, type tP2=tP2+960
For placing an object exactly at one inch from the top margin, type tp3=960

http://msdn.microsoft.com/en-us/library/ms998538%2...
http://msdn.microsoft.com/en-us/library/ms965281.a...
http://www.codemag.com/Article/0404032
http://www.foxite.com/archives/report-item-width-d...
http://www.foxite.com/archives/report-item-width-d...
http://www.foxite.com/archives/double-report-00003...

Back to Microsoft: Visual FoxPro FAQ Index
Back to Microsoft: Visual FoxPro Forum

My Archive

Resources

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