Bar Code Print In Print Format Useing Serial No In Stock Entery

hello, i am trying print Barcode in print format. so, i am create a one
Repack entery thene one item qty 3 and pack in secound item box qty 1. i am allocte serial no .
2 qty then 2 serial no so barcode is print but this show in single line. so how to print barcode one by one as par serial no in repace entry used.
we are try this code and resulet is so below.

Hi @HardikA,

I think you need to read this topic.

Thank You!

Thank’s for reply.
i am try this but, it’s not working at it is output is show.
any other solution. so reply me.