I would like to create a report in which every page is surrounded by a border of a specified thickness and color, a specified distance from the edges of the paper. I think I know how to do this, except for one thing: the border should have rounded corners. How would I accomplish this?
You would be able to do this through the PageMargins and PageBorders properties of the section, and there is also a Corners property off of the PageBorders (or any Border object), so you could do:
section.PageMargins.All = 5.0f;section.PageBorders.All = new Border(Infragistics.Documents.Graphics.Pens.Black);section.PageBorders.Corners.All = new Corner(Infragistics.Documents.Graphics.Pens.Black, 3.0f);
-Matt
Thanks, I get it now.
By the way, in that statement
section.PageMargins.All = 5.0f
what the units? Hundreths of an inch? Pixels with some assumed DPI resolution? or What?
I believe that all units in the Documents assembly can be assumed to be in Points.