How can I get the below to print in "Landscape" mode by DEFAULT instead of "Portrait" ?
private void printDocument1_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e)
{
float LeftMargin = e.MarginBounds.Left;
Font myFont = new Font("Arial", 12, FontStyle.Regular, GraphicsUnit.Pixel);
e.Graphics.DrawString(iDTextBox.Text, myFont, Brushes.Black, LeftMargin, 10);
e.Graphics.DrawString(wEIGHTTextBox.Text, myFont, Brushes.Black, LeftMargin, 20);
e.Graphics.DrawString(dATEREVTextBox.Text, myFont, Brushes.Black, LeftMargin, 30);
e.Graphics.DrawString(dESCRIPTIONTextBox.Text, myFont, Brushes.Black, LeftMargin, 40);
e.Graphics.DrawString(dATEAPVTextBox.Text, myFont, Brushes.Black, LeftMargin, 50);
e.Graphics.DrawString(cAT_IDComboBox.Text, myFont, Brushes.Black, LeftMargin, 60);
}
by: Omego2KPosted on 2009-11-03 at 10:01:29ID: 25731657
add:
e.PageSettings.Landscape = true;