senny / sablon

Ruby Document Template Processor based on docx templates and Mail Merge fields.
MIT License
446 stars 128 forks source link

Avery Labels #116

Closed Svashta closed 6 years ago

Svashta commented 6 years ago

Hi,

I am trying to prepare one of the Avery Labels template that I would like to use with sablon and populate each label with some dynamic data. I am specifically trying to figure out how to do the loop. Currently all the data is written out in single label instead of label by label. Is there any way of saying NextRecord in next label or something similar? I can't find a way to put :each and :endEach before and after the label. Thx

stadelmanma commented 6 years ago

I've never tried anything like this before. A quick google to see what an Avery label template looks like gives me the impression you would probably have to put the :each and :endEach after an entire row of labels. That way the row will get repeated down the page.

stadelmanma commented 6 years ago

No further information received, closing this for now.