About the title, Let say i have a sentence with fonts and size set and I want to place the sentence in the centre of the page. How do i design the algorithms to do that?
I tried calculated page width and then half the page width but the first character of the sentence starts from the (page_width/2) position.
Dim centre As Single = Convert.ToSingle((e.MarginBounds.Width) / 2)
Dim title_font As New Font("Impact", 45, FontStyle.Bold, GraphicsUnit.Pixel, 18)
e.Graphics.DrawString("Printed a Line on page " & ass & i.ToString, title_font, Brushes.Black, centre, 50)