Click here to Skip to main content
15,889,034 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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:

.
Posted
Updated 16-Oct-17 0:14am
v2
Comments
Andy Lanng 16-Oct-17 5:05am    
In the U.K. There is no official cheque format. As long as it has the minimum detail you can shave it on a cow, though banks do have the right to refuse bovine tender. Find a blank cheque, find what the minimum requirements are then make a report, document or form that looks like that

1 solution

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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900