Lines and Rectangles not aligned on the left margin
Hello,
I am working on ReportBuilder 6.02 Standard, Windows 2000 and
Delphi 5.0.
When i use a left-line component and a rectangle-shape component
on 2 regions and the components left offset is 0, the 2 components's left
sides are not printed aligned and the line
component is printed a small space to the right.
Is there a reason for this ?
Thanks in advance.
I am working on ReportBuilder 6.02 Standard, Windows 2000 and
Delphi 5.0.
When i use a left-line component and a rectangle-shape component
on 2 regions and the components left offset is 0, the 2 components's left
sides are not printed aligned and the line
component is printed a small space to the right.
Is there a reason for this ?
Thanks in advance.
This discussion has been closed.
Comments
You are encountering a limitation/quirk of the Windows API. RB uses API
calls to draw to the printer canvas. RB is using a MoveTo, LineTo to
render a line and it is uses PolyLine/Rectangle command to render a
rectangle. These produce slightly different results for the same left
dimension.
Try using all rectangles or all lines.
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com