如何在应用程序中创建打印按钮 [英] how to create print button in application

查看:60
本文介绍了如何在应用程序中创建打印按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的应用程序上创建一个按钮,用于在所有类型的纸张尺寸(如a4,legal,a3等)上打印数据网格视图。我还希望看到所选数据为A4尺寸格式的文件或表格。

解决方案

你有Google搜索有很多例子

打印DataGridView

DataGridView打印/打印预览解决方案 - 第一部分

DataGridView打印/打印预览解决方案 - 第二部分

另一个DataGridView打印机

如何在C#和.NET中打印数据网格

DataGridView打印

您还可以找到一些应用程序其他

您必须根据您的要求修改这些代码,但您可以从这些代码中了解:)


尝试学习水晶报告(打印)

https://www.google.co.in/?gws_rd=cr&ei=fvH1UqDMBYyCrgemnYHwDA#q=crystal+report+in+c%23 [ ^ ]

i want to create a button on my apps for getting print of data gird view on all type of paper size like a4,legal,a3 etc.and i also want see selected data to be in A4 size format file or form.

解决方案

Have you Googled there are many examples
Printing of DataGridView
DataGridView Print/Print Preview Solution - Part I
DataGridView Print/Print Preview Solution - Part II
Another DataGridView Printer
How To Print a Data Grid in C# and .NET
DataGridView Printing by Selecting Columns and Rows
You can also Find some Applications here
You have to Modify these code according to your requirement but you can get an idea from these codes :)


try to learn crystal report (printing)
https://www.google.co.in/?gws_rd=cr&ei=fvH1UqDMBYyCrgemnYHwDA#q=crystal+report+in+c%23[^]


这篇关于如何在应用程序中创建打印按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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