Click here to Skip to main content
15,905,686 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hai to all,


Am doing a project in windows application using c#. I have one doubt about printing the bill. Am i want to set width whether the bill is printing in a small paper like bills in margin free shop?
Posted
Updated 25-Jul-11 19:08pm
v2

Hi Aswathi,
If you want to print bill you can use Microsoft Reports.
but if you want to print Form then it is very easy.
Go to ToolBox of visual Studio
>Visual Basic Power Packs
>Drag PrintForm component to the form
>On button click event write the code
C#
this.printForm1.Print();
 
Share this answer
 
Comments
Aswathi Narayan 26-Jul-11 1:14am    
Thank u
Aswathi Narayan 26-Jul-11 1:15am    
i have one doubt. Am I want to set width of the page whether it is printing in a small size of paper?
uspatel 26-Jul-11 1:57am    
It will print form , You can set the size of form.
While you can use a Printform component as Uma Shankar Patel suggests, it may not be the best solution - look at using a PrintDocument[^] class instead. The advantage is that it is document oriented, rather than display / GUI oriented which means you get better control over exactly how your bill prints, and normally much better quality. It is a little more complex to use, but not a lot, and the link provides a simple 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