Click here to Skip to main content
15,896,481 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Friends


I am Developing a Windows Application for Sales. till today i am using crystal report.but all report coming i A4 Size.. now my client is asking to print invoice in small coupon size which used in supper market now a days. i don't know how to achieve it.

Using
CSS
TVS-E RP-45
80mm width
Auto Cutter



Please give me any reference links for it or any code....
Posted
Updated 27-Nov-13 18:21pm
v2

You need to Create Custom page size first as follows
Go to Printers and Faxes
Select Printer
Go To File / Server Properties
Go To Click New Form
Go To New Form -- > Write a Name of PaperSize
Go To New Form -- > Write a Name of PaperSize
Go To measurements Unit -- > Set Paper Size Wdith and Hight , Margin
Click OK

Then write following code ...



C#
crpt.PrintOptions.PrinterName = "PRINTERNAME";
 
crpt.PrintOptions.PaperSize = crpt2.PrintOptions.PaperSize;
 
crpt.PrintToPrinter(1,false,0,0);


And also after complete code and printer settings, you need to setting printer by printing sample format that will take some time you need to check multiple time on the printer, then you will achieve exact output, Like print out of general store bill, ticket print out of rail, bus service etc.

You can check following links

http://www.win2pdf.com/doc/index.html?pdf-custom-paper-size-vista.htm[^]


http://www.win2pdf.com/doc/index.html?pdf-custom-paper-windows-7.htm[^]

In above two link I want to show the screen view of Custom page creation.


Setting Custom Paper Size for Crystal Reports while Printing[^]
 
Share this answer
 
v3
 
Share this answer
 
TVS-E RP-45
80mm width
Auto Cutter
 
Share this answer
 
need more details like what printer going to use and size of the paper, etc...
 
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