printDocument.DefaultPageSettings.Landscape = True 没生效
printDocument.DefaultPageSettings.Landscape = True 效果好像只是把纸横着放到打印机,而不是真的横向打印,如果纸张正常放进去,还是和纵向打一样,但后面部份就没掉了,真正的纵向打印要怎么弄,难道要把打印的内容都旋转270度吗?
[解决办法]
需要把PaperSize的高宽互换
if (printDocument.DefaultPageSettings.Landscape)
{
printDocument.DefaultPageSettings.PageSize = new SizeF(printDocument.DefaultPageSettings.PageSize.Height, printDocument.DefaultPageSettings.PageSize.Width);
}
可参考下面这个博客http://blog.csdn.net/vicent_ren/article/details/5656510