How to set the LaserJet Printer and InkJet Printer height?

I have problem that I print the report in LasterJet Printer, it work fine (only 2 page), but when the client print the same report to InkJet Printer, it print 4 page and the second and forth page is blank.

I set the Height of the page to 16836 <- it work fine at Laserjet printer.

So, how to solve this problem, what is the max height for A4 / F4 / A3 or B4 paper?

There are 566.93 twips per centimeter. You'll need to know the height of your paper in cm. For example if A4 paper is 29.7cm tall, then you'd multiply 29.7 by 566.93 to equal the maximum length of ~16838.