Closed dwasyl closed 11 months ago
Hi, which version have you used ? The released one doesn't contain the NEXT field implementation. Just lazy on my part on the release cycle. If you try with the github version by installing it directly with pip install git+https://github.com/iulica/docx-mailmerge
Let me know if this works for you and I will make a release afterwards.
Okay tried that - It seems to generate one page of labels for any given data (and includes the <<Next Record>>
label with each subsequent label. The data provided is in the same structure as how I provide it for doing multiple documents combined (which always works no problem).
Thoughts?
Hmm, can you make a short example I can test ? I don't quite understand what you mean.
Sure, here's a simple label sheet template I've been trying to use. Or did you mean code as well?
well, if you can include the code, it's much easier for me to test. Otherwise I have to create my own sample.
Here is a test I made with 5 rows of data. There is something wrong with your template I believe. I opened the template in Word and did the mailmerge manually and the result is similar (There is a slight problem, the docx-mailmerge doesn't remove the remaining labels on the last page, it is known and I don't have an easy solution but is also not a problem in my opinion).
out_docx_mailmerge.docx out_word_mailmerge.docx test_next.xlsx
@iulica Okay, I tried the live branch again and it seems to be working okay for labels. Is there chance of a new release happening for others?
I am currently in vacation and will make a release as soon as I return, in 1-2 weeks from now. Thanks for testing
@dwasyl I have just released the 0.6.3. Sorry that it took so long.
I'm working to generate some mailing labels via
docx-mailmerge2
, generally these have a single design followed by a "next record" flag and that way you can generate 5-20 labels on a single sheet. While there seem to be some tests fornext record
, the document templates I've been using don't seem to work.Is there special handling required for these situations or knowing how to detect it?