I want to add a line between to paragraphs, how to do it?
There is no AddLine in the ISection class.
Thnxs
Arnaud
Hello,
In Section element of the report you could add Decoration element, which will allow you to add a shape to this report. You should use code like:
Report rep = new Report();
ISection sec = rep.AddSection();
IDecoration dec =sec.AddDecoration();
ILine line = dec.Shapes.AddLine();
line.X1 = 0;
line.X2 = 100;
line.Y1 = 10;
line.Y2 = 500;
Brush brush = new SolidBrush(Color.Blue);
Pen pen = new Pen(brush);
line.Pen = new Infragistics.Documents.Reports.Graphics.Pen(pen);
ultraGridDocumentExporter1.Export(ultraGrid1, sec);
rep.Publish("Test.pdf", FileFormat.PDF);
pen.Dispose();
brush.Dispose();
Please let me know if you have any further questions.
I want to draw a line in my report. In de headersection i can do that: .shapes.addline()
regards
I am not sure what exactly your scenario is. Please review following link where is explained the nature of the Section element
http://help.infragistics.com/Help/NetAdvantage/WinForms/2011.1/CLR2.0/html/DocumentEngine_Section_Element.html
Also I could suggest you to consider the variant to add a gap instead a line
http://help.infragistics.com/Help/NetAdvantage/WinForms/2011.1/CLR2.0/html/Infragistics2.Documents.Reports.v11.1~Infragistics.Documents.Reports.Report.Section.ISection~AddGap.html
Please let me know if you have any further questions or I am missing something.
Sincerely,