Ok, so I had a couple of minutes after lunch to play around a bit with the
System.Drawing. Printing namespace. I just wanted to print out a single line
of text. I had to work very hard to resist the urge to print out "Hello
World!" <g>
I got very excited as I pressed the button on my form and the printer
cranked up. It spit out the most beautiful blank white page that you've
ever seen. I'm going to read up and play with it some more this evening,
but does anyone see the problem off hand. Thanks!
private void printAccounts_P rintPage(object sender,
System.Drawing. Printing.PrintP ageEventArgs e)
{
printFont = new Font("Arial", 10);
float yPos = 0;
float leftMargin = e.MarginBounds. Left;
float topMargin = e.MarginBounds. Top;
yPos = topMargin;
e.Graphics.Draw String("Bobby C. Jones", printFont, Brushes.Black,
leftMargin, yPos, new StringFormat()) ;
e.HasMorePages = false;
}
--
Bobby C. Jones
System.Drawing. Printing namespace. I just wanted to print out a single line
of text. I had to work very hard to resist the urge to print out "Hello
World!" <g>
I got very excited as I pressed the button on my form and the printer
cranked up. It spit out the most beautiful blank white page that you've
ever seen. I'm going to read up and play with it some more this evening,
but does anyone see the problem off hand. Thanks!
private void printAccounts_P rintPage(object sender,
System.Drawing. Printing.PrintP ageEventArgs e)
{
printFont = new Font("Arial", 10);
float yPos = 0;
float leftMargin = e.MarginBounds. Left;
float topMargin = e.MarginBounds. Top;
yPos = topMargin;
e.Graphics.Draw String("Bobby C. Jones", printFont, Brushes.Black,
leftMargin, yPos, new StringFormat()) ;
e.HasMorePages = false;
}
--
Bobby C. Jones
Comment