打印宽度限制?为什么只能打印在A4纸宽度范围内? ev.Graphics.Drawstring("Hello, World.", f, Brushes.Black, 200, 100); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 在doc.Print();之前先设置纸张的大小,在doc的属性中设 PrintDocument doc = new PrintDocument();//设置纸张的大小doc.DefaultPageSettings.PaperSize = new PaperSize("Custom",1400,1010);doc.PrintPage += new PrintPageEventHandler(doc_PrintPage);doc.Print();private void doc_PrintPage(object sender, PrintPageEventArgs ev){Font f = new Font("Arial", 12);ev.Graphics.Drawstring("Hello, World.", f, Brushes.Black, 1200, 100);ev.HasMorePages = false;}还是不行该如何设置? C# 同样一个公式,为什么计算结果不一样,大家帮我看下,在线等 窗体继承问题 注册码的问题 WCF序列化问题. c#里的数组问题 帮助文档为何显示不出 C# 2.0访问Access 2003数据库问题。 -=100分=- VS2005 Team Suit 简体中文版的Asp.Net web项目不能生成release版本? ADO.net组件中各种类的关系 如何在richtextbox里面实现代码自动完成功能? 怎样让字体自动适应分辨率 有没有asp.net(c#)+xml的电子书下载
doc.DefaultPageSettings.PaperSize = new PaperSize("Custom",1400,1010);doc.PrintPage += new PrintPageEventHandler(doc_PrintPage);
doc.Print();private void doc_PrintPage(object sender, PrintPageEventArgs ev)
{
Font f = new Font("Arial", 12);
ev.Graphics.Drawstring("Hello, World.", f, Brushes.Black, 1200, 100);
ev.HasMorePages = false;
}
还是不行
该如何设置?