Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I move and resize report's objects?

Reports

How can I move and resize report's objects?

by  vgulielmus  Posted    (Edited  )
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%28v=vs.80%29.aspx
http://msdn.microsoft.com/en-us/library/ms965281.aspx
http://www.codemag.com/Article/0404032
http://www.foxite.com/archives/report-item-width-depending-on-field-val-0000390266.htm
http://www.foxite.com/archives/report-item-width-depending-on-field-val-0000390359.htm
http://www.foxite.com/archives/double-report-0000394498.htm
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top