Click here to Skip to main content
15,896,557 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
SQL
In my C# .Net windows application I have to implement an Invoice, bill, report for a hotel management system. My issue here is that I don't know how to put page breaks in crystal report depending upon the number of items in the data source. Now am using "New page after " formula as below

    If​Remainder (RecordNumber, 5) = 0 then true else false

And​ it's ​working fine.. Now​ in my printer am using the Roll​Paper​ to print​ the invoice. And​ Here , if the table consists​ of 3 items, the printer will take a whole paper​(if the paper is A4).I need the printer to stop printing depending upon the number of items in the data source So we can avoid wastage of paper.. hHow​can I​ solve this?
Posted

1 solution

 
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