Page 1 of 1

[solved] StiVerticalLinePrimitive and Top

Posted: Tue Nov 16, 2010 1:38 pm
by ChrDressler
Hi,

according this, I try to place an vertical line in DataBand.
I have a additional StiPageHeaderBand.
The problem: my vertical line is always moved down by the sum of the heights of all bands above.
The Top-Value is recalculated by the designer?

This Line has no effect:

Code: Select all

VerticalLinePrimitive1.Top += MyDataBand.Top;
What can I do?

-christoph

[solved] StiVerticalLinePrimitive and Top

Posted: Wed Nov 17, 2010 2:04 am
by Alex K.
Hello,

Please send us your .MRT file with database for analysis on support@stimulsoft.com

Thank you.

[solved] StiVerticalLinePrimitive and Top

Posted: Wed Nov 17, 2010 1:46 pm
by ChrDressler
Hello,

I think, I've found the error. I move the calculating of the Top-property above the instanciating of the rectangle, an all works fine: :biggrin:

Code: Select all

var VerticalLinePrimitive1 = new StiVerticalLinePrimitive();
myY += myDataBand.Top;  // I inserted this line
VerticalLinePrimitive1.ClientRectangle = New RectangleD(myX, myY, myHeight, myWidth);
...
-christoph

[solved] StiVerticalLinePrimitive and Top

Posted: Wed Nov 17, 2010 10:46 pm
by Andrew
This is very good!

Have a nice day!
Thank you.