Hi, i'm trying to implement a print function and i can print a single string out but i'm having trouble configuring the page setup properly, mainly moving to a new line when the margin of the page is reached and moving to a new lines for each string in a list of string.
so far i have this printing out a single piece of text:
private void document_PrintPage(object sender,
System.Drawing.Printing.PrintPageEventArgs e)
{
System.Drawing.Font printFont = new System.Drawing.Font
("Arial", 28, System.Drawing.FontStyle.Regular);
string text = "Now then";
// Draw the content.
e.Graphics.DrawString(text.ToString(), printFont, System.Drawing.Brushes.Black, 10, 10);
}
i've tried looking on the internet but musent be using the right search criteria because i can only find stuff to print one small string.
Any suggestions of how to do the above or suggestions of tutorials will be great
thanks