问题
I am using this code to print
System.Drawing.Font printFont = new System.Drawing.Font
("Arial", 35, System.Drawing.FontStyle.Regular);
System.Drawing.Font valueFont = new System.Drawing.Font("Arial", 20, System.Drawing.FontStyle.Regular);
// Draw the content.
e.Graphics.DrawString(text, printFont,
System.Drawing.Brushes.Black, 10, 10);
e.Graphics.DrawString("asdfasdf", valueFont, System.Drawing.Brushes.Red, 20, 20);
as you see, I am setting the location of the printing values like this:
10,10
and
20,20
and this is the result:

my question is: is there a way to make c# set the location automatically?
I would prefer If there is a way to print the data as table because i have 52 textbox and I would like the printing page to be like this:
------------------------
label1: textbox1.Text
------------------------
label2: textbox2.Text
------------------------
来源:https://stackoverflow.com/questions/25218779/c-sharp-how-to-print-information-in-table