赢表格中的打印问题 [英] print problem in win form

查看:64
本文介绍了赢表格中的打印问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有很多具有数据网格视图的表单,并且我的表单中有从数据网格视图打印的打印按钮,我从互联网上下载了一类print.DVG并编写

I have many forms with data grid view and I have print button in my forms that print from data grid view I download one class print.DVG from internet and write

private void Print_Click(object sender, EventArgs e)//print
{
   PrintDGV.Print_DataGridView(dataGridViewX1);
}


和我建立一种形式的printoptions,但是这种错误外观
对象引用未设置为对象的实例


and I build one form printoptions but this error appereance
object reference not set to an instance of an object

推荐答案

看看这个: ^ ]

它是最新的,似乎可行,如果有问题,可以使用页面底部的新消息"直接与作者联系.
Have a look at this: Another DataGridView Printer[^]

It''s recent, seems to work, and you can contact the author directly by using the "New Message" at the bottom of the page if you have problems.


通过代码查找您已发布,PrintDGV似乎为空.或Print_DataGridView方法内的内容为空.
Going by the code you have posted, PrintDGV seems to be null. Or something inside Print_DataGridView method is null.


这篇关于赢表格中的打印问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆