After the PRINT command, please try setting paper size ( A4 or Letter ) and orientation to portrait.
In future programs, we advise you to use physical units like INCHES,CM,MM and let the printer class handle the complex calculations. That will be a lot easier.