Consultor Eletrônico



Kbase 17457: Actuate - Dynamic Line Solution
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/05/1998
Actuate - Dynamic Line Solution

Center a Line Dynamically

To center a line with different sizes of pages ,
one has to assume that the length of the line will remain
constant.The algorithym to follow is the line has four
co-oridinates (X1,y1) start position and (X2,y2) end
position ,since we have to center the line along the
x - axis we will not take into consideration the y Axis.
The Start position x co-ordinate can be found out by
the following formulae

X1 = (PageSize - LineSize)/2

The End Position X2 = (PageSize - LineSize)/2 + LineSize

In The Example "LineSoln.ROD" the page has a Margin so
A Quarter of An Inch is added to both the
CoOrdinates to nullify the margin width.

Also the LineSize is a Parameter to the Report ,
So one can test out by entering different LineSizes and
by altering the PageSize.The Default LineSize Is 6 .


Progress Software Technical Support Note # 17457