如何在Visual Basic中打印网格视图 [英] How to Print The Grid View In Visual Basic

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

问题描述

我在VB 2010中制作了酒店帐单.我想通过按钮打印直接打印网格视图

什么是打印按钮"的后端代码

我声明了一个名为Bill.vb(Form2.vb重命名为Bill.VB)的新表单,因为我声明了Printdocument,并从工具中打印了预览版.

所以我想要的是如何通过单击打印按钮来打印该数据网格视图

数据网格视图的名称为网格"
数据集名称"ItemsDataSet"
表适配器名称为"ItemTableAdapter"

基于此详细信息,请给我代码

i made a hotel bill in VB 2010. i want to print the grid view directly by a button print

what is back end code of Print Button

i declared a new form called Bill.vb(Form2.vb renamed to Bill.VB) in that i declared Printdocument and print preview dailog from tools

So what i what i want is how to print that data grid view with single click on print button

Data grid view name is "grid"
data Set Name "ItemsDataSet"
Table adapter name is "ItemTableAdapter"

based on this details give me code

推荐答案

从中获取引用:
http://www.codeshode.com/2010/05/print-functionality- in-aspnet-gridview.html [ ^ ]
Get a reference from this:
http://www.codeshode.com/2010/05/print-functionality-in-aspnet-gridview.html[^]


http://csharpdotnetfreak.blogspot.com/2012/07/print-gridview-data-in-aspnet-c-vb.html [ http://www.telerik.com/help/winforms/gridview-printing-support.html [^ ]
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId = 8420& lngWId = 10 [
hw to print grid view in vb.net2010[^]
http://csharpdotnetfreak.blogspot.com/2012/07/print-gridview-data-in-aspnet-c-vb.html[^]
http://www.telerik.com/help/winforms/gridview-printing-support.html[^]
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=8420&lngWId=10[^]


这篇关于如何在Visual Basic中打印网格视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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