Machaira
Well-known member
Something I thought would be simple has turned out to be a little more difficult than I thought. I simply want to print a vertical line in the middle of a landscaped sheet of paper. Even hardcoding the x value doesnt seem to work when the margins change:
gr.DrawLine(Pens.Black, 550, top + (lineHeight * m_CurLine), 550, e.MarginBounds.Bottom - (lineHeight * 2))
Changing the hardcoded value to:
e.PageBounds.Width / 2
doesnt seem to work either.
It seems the x value is relative to the left margin for some reason. Is this correct? If so, why would it be?
gr.DrawLine(Pens.Black, 550, top + (lineHeight * m_CurLine), 550, e.MarginBounds.Bottom - (lineHeight * 2))
Changing the hardcoded value to:
e.PageBounds.Width / 2
doesnt seem to work either.
It seems the x value is relative to the left margin for some reason. Is this correct? If so, why would it be?