-
Notifications
You must be signed in to change notification settings - Fork 104
Document is gray when opening specifically for 2 page docs. #105
Comments
This repository doesn't seem to be maintained anymore. I don't think you will get anything here fixed. I contacted Bouke to take over the maintenance but didn't yet succeeded. Can you provide the example document and the values ? Also, can you check if my version of the docx-mailmerge has the same problem ?
|
Yeah, I was finding that. Saw you around quite a bit, though, which is cool. I actually reached out to Bouke myself to inquire about the same thing, as I made an addition to this tool and ended up learning quite a bit about it as a result. Seeing as I'm sure you contacted him a while back (I only emailed a couple days ago), I'd be happy to partner up with you on a new repo where we can both manage this project and release an updated version on pypi so people can continue to use this great tool with hopefully more features! Here's an example file that you can open up that should produce what I just mentioned: I'll look to get your version into my pipenv in a bit and test if the issue is still present. I'd guess it is, unless you did some specific modifications to the |
I have opened the file and it opened fine, maybe I don't understand what the issue is. Perhaps include the source file and the python code that generates it. I have changed quite a lot, pretty much everything :), in order to be able to adapt the code for future features. Edit: I use Word 16 for Mac |
Well, what I meant is to include the test_salesign...docx, that is the source file. Then I can generate and check myself. Here is opened in my word: |
Ooh interesting! Likely ties in to the issue Im having, although Im not sure why the images aren't cooperating there when they're fine in my Word 365. Here's the base file I used: |
``Ok. I understand now what you want. Then use merge_template with three rows at a time, and nextColumn_section type of separator. It will work nicely. input_issue105.docx
|
I gotcha. I'm functioning from an existing template (that's pretty common in terms of creation of repetitive labels or signage) that I don't really want to modify in order for it to fit to the library. I've already created a solution on my fork (I definitely need to refactor it, but it's fully functional) that I have for this already. Problem is more that even when using normal |
Hi Iulica, Just wanted to note here that I tested the issue with your repo and it produced the same issue. I'll open up a ticket over on your repo. |
Expected Behavior
I make a 2 page document using
merge_templates
and it opens normally.Current Behavior
Currently, I can generate the document fine and open it to a gray screen. I can then get the screen to come up by pressing
Alt+F9
or clicking the screen a few times. I think the alt+f9 just gives it a refresh vs any actual correlation to the issue. This specifically happens with documents of 2 pages only, that I've found. I've tested 1 page, 3 pages, and pages in the 100s and that all loads normally..so weird, haha.Possible Solution
I'm guessing it's some tweak that needs to happen with the rebuilding of the XML in the
merge_templates
function. I'm going to look into it a little bit myself.Steps to Reproduce (for bugs)
Alt+F9
to fix it, then press again to turn the functionality of alt+f9 offnewPage_section
and now also just tested withpage_break
and got the same result.Context
Just making some labels and came across this issue. Checked to make sure my added function wasn't causing the issue and I found that it wasn't; the current
merge_templates
has the same issue.Your Environment
The text was updated successfully, but these errors were encountered: