Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello....i want to print a page sized 6 inch(horizental) 8.5 inch(vertical).i have set up this size and try to print it in a A5 and A4 size page but the out put print is not as per my expectation.the out put print is unexpectedly larger and the print out of the page as well.

after that i have choose the page set up as A5...and now my problem is solved....

but still i want to know how do i print any size page as per my desire.

i am using visual studio 10 and vb.net crystal report 13
Posted

1 solution

To set up paper size, use PrintOptions.PaperSize[^] property of Crystal Report. You should be warned that there is a paper size enumeration[^]. It means that you can't set any custom paper size, but the one from collection. If you would like to set up default paper size for printer, please see: Adding custom paper sizes to named printers[^].

Alternativelly, you can print data using PrintDocument[^] class (designed for printing from a Windows Forms application).
 
Share this answer
 
Comments
thatraja 3-Apr-14 5:43am    
5!
Maciej Los 3-Apr-14 6:22am    
Thanks, Raja ;)

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