Mishanya said:
I've just found out, that not only the PageHeader section is not aligned to
the margins, but the rectangle that I drow with Line Method is also
distributed unevenly:
Left and upper lines apparently have width as defined by Me.DrawWidth = 6,
but right and lower ones seem much slimer (and unless the report view is
scaled as 100%, they are not seen at all).
This rectangle issue may not be a specific problem, but a
consequence of where a line is positioned in relation to the
coordinates used to specify the line's end points. For
instance, and I am pretty sure this is the case, if the
line's thickness is added to the right or below the
coordinates, then the part you are not seeing is just being
cropped at the right and bottom margins. You can easily
test this by subtracting a fudge factor from the second set
of coordinates:
Me.Line (0,0)-(Me.ScaleWidth-20,Me.ScaleHeight-20), vbRed, B
20 is probably not optimal, but I'm guessing it would be
safe with a DrawWidth of 6 for most monitors and
resolutions.