Click here to Skip to main content
15,896,727 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more: (untagged)
want to print a form when i press a enter button help me sir
Posted
Comments
Kschuler 13-Jan-12 13:58pm    
We can't help you without more information. What language are you coding? Is it for a website or a windows form or a mobile project or what? What code have you tried and why isn't it working?
Sergey Alexandrovich Kryukov 13-Jan-12 18:02pm    
Both title and tag ("Beginner"! What does it tell us? Next to nothing.) are not informative. If you are a beginner, do begin. It looks like you never tried. Did you ever heard there are different languages? Different platforms? Different libraries? What form and button are you talking about, what is "print a form"? If you think about it, you will see that even this is not clear.
--SA
Sergey Alexandrovich Kryukov 13-Jan-12 18:05pm    
Please don't re-post.
--SA

1 solution

If this is related to you other question printing code in ado.net[^] then you talk about forms - so there are two ways to print your form:
1) Add the VB powerpacks PrintForm class[^] You can use this in VB or C#.
2) Use a PrintDocument class[^] and do the job properly

The second approach is a bit more complex (but not too bad) but it produces much, much better output than the first. It is also more flexible in the long run and worth learning.

Both of the links will give you sample code if you read them and follow the appropriate links from there.
 
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