Hi guys-
I'm trying to print a report with variables from a form, plus some
other text that i guess would be hard coded. I'm really at a loss
here. I think I'm on the right track though.
When I do this... it prints all of the information on the same line.
Plus I'm sure I'm duplicating effort here...
private void printDocument1_PrintPage(object sender,
System.Drawing.Printing.PrintPageEventArgs e)
{
Graphics g = e.Graphics;
String headername = "my name";
Font messageFont = new Font("Trebuchet MS", 24,
System.Drawing.GraphicsUnit.Point);
g.DrawString(headername, messageFont, Brushes.Black, 100,
100);
String headeraddress1 = "1234 W Anystreet";
String headeraddress2 = "Phoenix, Arizona 85000-0000";
Font messageFont2 = new Font("Lucida Console", 7,
System.Drawing.GraphicsUnit.Point);
g.DrawString(headeraddress1, messageFont2, Brushes.Black,
100, 100);
g.DrawString(headeraddress2, messageFont2, Brushes.Black,
100, 100);
}
Let me know!
Thanks!
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/Microsofts_C_Sharp/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/