Creating labels in word

Hi all ,

i am trying to create labels in word from the notes client. The user will give inputs like label name, label product, column count and page size. I need to generate labels based on these data.

How to generate lables can anybody help me

Thanks in advance