Hi frendes

I am developing a POS System

and I Have a problem With Printing Receipts
With The Receipts Prenter

The Problem is i Can't Manage The report Length

the Receipt Lengh Must be harmonious With The Number
of The Items in theis Check or Receipt

i just need to know the tool that Can help me to do this

Plz any one Help me