This is a migrated thread and some comments may be shown as answers.

Programmatically drawing a line in Telerik Reporting

2 Answers 469 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Anand
Top achievements
Rank 1
Anand asked on 07 Jul 2008, 09:30 AM
Hi

I have managed to create a dynamic report from a datatable. I have a problem creating a dynamic line to separate each row item in the report. Can you please help me or guide me in creating this line? 
 
Thanks
Anand

2 Answers, 1 is accepted

Sort by
0
Accepted
Steve
Telerik team
answered on 07 Jul 2008, 11:24 AM
Hi Anand,

You can use our shape item and set the ShapeType as Horizontal Line. Here is a sample markup of a "declaratively" added shape:

  this.shape1.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(0.42645490169525146, ((Telerik.Reporting.Drawing.UnitType)(Telerik.Reporting.Drawing.UnitType.Cm))), new Telerik.Reporting.Drawing.Unit(0.7060205340385437, ((Telerik.Reporting.Drawing.UnitType)(Telerik.Reporting.Drawing.UnitType.Cm)))); 
 this.shape1.Name = "shape1"
 this.shape1.ShapeType = new Telerik.Reporting.Drawing.Shapes.LineShape(Telerik.Reporting.Drawing.Shapes.LineDirection.EW); 
 this.shape1.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(15.347089767456055, ((Telerik.Reporting.Drawing.UnitType)(Telerik.Reporting.Drawing.UnitType.Cm))), new Telerik.Reporting.Drawing.Unit(0.373544842004776, ((Telerik.Reporting.Drawing.UnitType)(Telerik.Reporting.Drawing.UnitType.Cm)))); 

Let us know if you have other questions.

Regards,
Steve
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Anand
Top achievements
Rank 1
answered on 07 Jul 2008, 01:47 PM
Thanks, Steve. That worked fine.
Tags
General Discussions
Asked by
Anand
Top achievements
Rank 1
Answers by
Steve
Telerik team
Anand
Top achievements
Rank 1
Share this question
or