PrintDocument怎么横向打印?
代码如下:
private void button1_Click(object sender, EventArgs e)
{
this.printDocument1.Print();
}
private void printDocument1_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e)
{
e.Graphics.PageUnit = GraphicsUnit.Millimeter;
e.Graphics.DrawString("中华人民共和国");
e.HasMorePages = false;
}
private void printDocument1_BeginPrint(object sender, System.Drawing.Printing.PrintEventArgs e)
{
this.printDocument1.DefaultPageSettings.PaperSize = new System.Drawing.Printing.PaperSize("asdf", 1000, 800);
this.printDocument1.DefaultPageSettings.Margins = new System.Drawing.Printing.Margins(0, 0, 0, 0);
this.printDocument1.DefaultPageSettings.LandScope = true;
}
我把LandScope设为了true,但在打印时,它只是把纸张的宽和高换了换,"中华人民共和国"几个字还是横着的。按道理这几个字应该反转过来打印的,怎么实现?