Since you're using non-continuous media, have you tried recalibrating? This document explains how, stating, "With the printer power on and top cover closed, press and hold the Feed button for several seconds. The green status LED will flash a number of times in sequence." You want to wait for the two flash sequence to trigger the Standard Auto Media Calibration.
Thanks for the quick reply, after calibration when I print all the alignment are gone and it is not printing properly, before calibration all the alignment was fine and it was printing fine perfect except it was skipping labels in between printing,
Below is my code:
Thanks for the support, it was fixed when I did manual calibration.