c#中实现打印预览的问题 建议使用水晶报表,在报表建立显示字段,然后通过Session把 richTextBox1值传过去就好了 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 首先在InitializeComponents中添加ThePrintDocument的PrintPage事件thePrintDocument.PrintPage += new PrintPageEventHandle( thePrintDocument_PrintPage );打印方法:private void thePrintDocument_PrintPage( object sender, System.Drawing.Printing.PrintPageEventArgs e ){ //获得PrintDocument的Graphics对象 Graphics g = e.Graphics; //开始“画”string g.DrawString(richTextBox1.Text, this.Font, new SolidBrush(Color.Blue), new PointF(100, 100));} DataGridView更新数据库 关于SqlDataAdapter插入数据到数据库的问题。 JS获取后台多维数组问题 .NET 里能不能通过配置web.config来禁止用户使用浏览器下载和查看XML文件 水晶报表中无法将请求提交给后台处理? 看了Object类Equals函数源代码,我有些疑问? ORACLE 中 怎么插入空值(时间类型)谢谢 用remoting方法从客户端传一个文件流到服务器端.提示由于安全限制无法传送? 怎样禁用系统热键和关闭防火墙 问在工作岗位的朋友!公司对c#的态度如何? 把Sql数据库文件导出成文本文件? string 高手进
thePrintDocument.PrintPage += new PrintPageEventHandle( thePrintDocument_PrintPage );打印方法:
private void thePrintDocument_PrintPage( object sender, System.Drawing.Printing.PrintPageEventArgs e )
{
//获得PrintDocument的Graphics对象
Graphics g = e.Graphics; //开始“画”string
g.DrawString(richTextBox1.Text,
this.Font, new SolidBrush(Color.Blue),
new PointF(100, 100));
}