While taking print out header & footer not comming and one extra line coming

If any one having any solution please help me regarding this.