We are using Infragistics.Documents for printing a customer contract. We want to build up the layout of the contract from a datasource. One of the items that will be defined in our datasource are rectangles and lines.My idea was to add those rectangles like this:
Dim rectangle As Shapes.IRectangle rectangle = site.Shapes.AddRectangle() With rectangle .Pen = Pens.Black .Width = 200 .Height = 100 .X = 10 .Y = 10 End With
The pen has a default width of 1. The constructor of a Pen doesn't accept a width smaller than 1. However when we add a Group or any other container that has a Borders property, the border of the group is thinner than the border of the rectangle:
Dim group As IGroup group = site.AddGroup(10, 10) With group .Width = New FixedWidth(200) .Height = New FixedHeight(100) .Borders.All = New Border(Pens.Black) End With
Is there any possibility to draw the border of a rectangle with the same width of a border?Thanks in advanceKevin
Hi Kevin,
That seems odd to me that you can't draw a rectangle as thin as a border. Can you create a small sample project demonstrating this and post it here so I can take a look?
I tried creating one from your code, but there are too many unknowns regarding the report, section, and site here for me to really get it the same.
Hi Mike
Thanks for your answer. I've added a sample project to this post. The project contains a form 'Form1' with a button.When you'll click on the button a sample report with two rectangles will be published to a temp PDF-file and automatically started by a Process.Start. The left rectangle is an empty group with all borders and the right rectangle is a real rectangle.
Hope you (or someone else) can find it out.
Kevin