Programmatically create a vertical line in a databand
Posted: Wed Jul 15, 2009 7:10 pm
I need to programmatically create a vertical line in a databand.
I've tried this code:
but i've noticed that in the StimulReport code the "StartPointPrimitive" and the "EndPointPrimitive" aren't created, while they are created if i manually design the vertical line. This causes some problems in the designer and in the report: if in designer i select the programmatically created vertical line in the databand, then if i move the databand the vertical line remains in its place.
Can you help me to programmatically create a vertical line in a databand?
Thank you.
I've tried this code:
Code: Select all
Dim VerticalLinePrimitive1 As New Stimulsoft.Report.Components.StiVerticalLinePrimitive
VerticalLinePrimitive1.ClientRectangle = New Stimulsoft.Base.Drawing.RectangleD(MyX, MyY, MyHeight, MyWidth)
VerticalLinePrimitive1.Color = System.Drawing.Color.Black
VerticalLinePrimitive1.Guid = System.Guid.NewGuid.ToString.Replace("-", "")
VerticalLinePrimitive1.Name = "MyName"
MyDataBand.Components.Add(VerticalLinePrimitive1)
Can you help me to programmatically create a vertical line in a databand?
Thank you.