I am apparently unable to print landscape... maybe I'm doing something
wrong here.
I am adding a printDocument to a form. The form also has a textbox
containing the text that I want to print and a button that triggers the
printing. All properties of all objects are left intact for simplicity's
sake.
Code on the form:
private void button1_Click(object sender, EventArgs e) {
printDocument1.Print();
}
private void printDocument1_PrintPage(object sender,
System.Drawing.Printing.PrintPageEventArgs e) {
e.PageSettings.Landscape = true;
e.Graphics.DrawString(textBox1.Text, new Font("Arial", 12,
FontStyle.Bold), Brushes.Black, 20, 20);
}
I am trying this with three different printers here in the office and it
still prints portrait. What am i doing wrong?
Dragos.