如何将详细信息打印到银行支票 [英] How to print details to a bank cheque
问题描述
大家好,
我需要使用Windows应用程序打印日期,收款人姓名,支票金额。因为我是Windows应用程序的新手,我不知道从哪里开始。我有通过各种规范了网上,但没有帮助我。我有一些数据和对网格中的每个数据的打印按钮,一个DataGridView。当我点击打印按钮的细节在网格即日期,金额,姓名应在印刷银行支票 。我是否需要创建单独的表格来打印详细信息,或者我可以直接打印到支票上。什么是打印要求(检查宽度,高度等..)。如何做到这一点。
Hi all,
I need to print date,payee name,amount to a cheque using windows application .Since I am new to windows application I don't know where to start with .I have gone through various codes online but nothing helped me .I have a Datagridview with some data and a print button against each data in the grid .When I click the print button the details in the grid ie date,amount,name should be printed in the bank cheque . Do I need to create a separate form for printing the details or can I directly print to a cheque . What are requirements for printing it (cheque width,height etc..).How to do this .
Any help will be really appreciated.Thanks in advance
我尝试过:
。
What I have tried:
.
推荐答案
不要尝试从DataGridView或任何其他控件进行打印。
而是使用PrintDocument类(System.Drawing.Printing) [它给你什么获取印刷完全控制^ ]哪里,用什么字体,以及纸张大小等等。该链接包含一个非常基本的示例。
Don't try to print from a DataGridView or any other control.
Instead, use the PrintDocument Class (System.Drawing.Printing)[^] which gives you full control over what gets printed where, in what font, as well as paper size and so forth. The link includes a very basic example.
这篇关于如何将详细信息打印到银行支票的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!