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 ...
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[
^]