[solved] StiVerticalLinePrimitive and Top

Stimulsoft Reports.NET discussion
Post Reply
ChrDressler
Posts: 68
Joined: Tue Nov 09, 2010 2:05 pm
Location: Dresden

[solved] StiVerticalLinePrimitive and Top

Post 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
Foxpro and behind
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

[solved] StiVerticalLinePrimitive and Top

Post by Alex K. »

Hello,

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

Thank you.
ChrDressler
Posts: 68
Joined: Tue Nov 09, 2010 2:05 pm
Location: Dresden

[solved] StiVerticalLinePrimitive and Top

Post 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
Foxpro and behind
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

[solved] StiVerticalLinePrimitive and Top

Post by Andrew »

This is very good!

Have a nice day!
Thank you.
Post Reply