oday I had a big table (70 guys) and my program was not able to print the complete ticket, it printed about only 50 rows or so and noting more. The table's database had more than 100 rows. I think the problem is the size of the graphic objet I'm using to print, may be It's not long enough. Do you have any idea? Remember that it's difficult to know how long a ticket is going to be
This is still 'dos based printing thinking', in a way.
In a DOS application, where you sent codes to the printer which change font size, spool paper feeds, etc etc, you could just keep throwing words and carriage returns (hear that old 'typewriter' speak there?) until you finished.
On a dot matrix printer, paper just kept churning out.
In graphics based printing land you really DO need to be aware of where you have got to on the 'page'
You get a page sized graphic from the printer to print upon.
If all your text is the same size, then the number of line you can get on it is basically (page height / text height)
keep a count of how many rows you have produced so far (or how far down the page you are)
If you reach the bottom, you do g.nextpage and it prints the first page and gives you a shiny new one to play with.