I have my printer set to MM. I am trying to work out how to centre text when printing using the following code:
Dim CentrePage As Single
CentrePage = Convert.ToString((e.PageBounds.Width / 2) - (e.Graphics.MeasureString("SENpic Report - " & Format(Now, "dddd, dd MMMM, yyyy") & " - Page " & prnPage, f).Width / 2))
e.Graphics.DrawString("SENpic Report - " & Format(Now, "dddd, dd MMMM, yyyy") & " - Page " & prnPage, f, br, CentrePage, 17)
Now I know it's a matter of units and I think one is in MM but I am not sure what the other unit is, so I can not work out a conversion factor for it.
Any Ideas?