将DataGrid中显示的数据直接打印出来的问题 http://www.c-sharpcorner.com/Graphics/DataGridPrinterMG.asp我猜大家都是使用了上面的例子出现这种情况的,真的没有人解决了吗?咱们哥几个自己努力调试吧,谁搞出来通知一声!!!期待ing 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 搞定!应该是DataGrid的初始行和页变量在加载到打印预览对话框的时候已经被赋值一次,当点打印时,需要再赋值一次,所以可以添加PrintDocument的BeginPrint方法,将两个变量重新初始化,即可解决,代码如下: private void dgPrintDocument_BeginPrint(object sender, System.Drawing.Printing.PrintEventArgs e) { dataGridPrinter1.PageNumber = 1; dataGridPrinter1.RowCount = 0; } 楼上的http://www.c-sharpcorner.com/Graphics/DataGridPrinterMG.asp不能进去呀 这个问题我解决了原来的代码有许多问题发邮件到[email protected]来取我改过的代码吧 你直接发给我好了[email protected]谢谢 为什么可以看到.net的源码呢? ModBus返回HTTP/1.1 400 delphi中数据类型 C#中如何对应 如何加速图片的显示速度 安装程序可以加入自定义页面吗 解决问题马上每你80分SOCKET问题 请大家帮忙,我怎样在 www.alexa.com 我的 url 中,加入别人的 link。 正则表达式匹配问题 C# 实体类中属性自动生成方法 请问:如何开始制作用户自定义的web control? 方法怎样调用事件(12点结贴) 消息队列能否应用在Internet上?有没有这方面的例子?
private void dgPrintDocument_BeginPrint(object sender, System.Drawing.Printing.PrintEventArgs e)
{
dataGridPrinter1.PageNumber = 1;
dataGridPrinter1.RowCount = 0;
}
http://www.c-sharpcorner.com/Graphics/DataGridPrinterMG.asp
不能进去呀
原来的代码有许多问题
发邮件到[email protected]来取我改过的代码吧
[email protected]
谢谢