You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've build a Word document generator that sets Custom properties in a Word document (serving as template) and saves the document afterwards. Like that each time a new document is generated, but with other Custom Properties set that can be sent together with an offer.
This all works like a charm on Windows.
However, running this on an Ubuntu Linux box, the properties aren't set and stay their default value: "****" :-(
My intention was to get this working in a Github pipeline, so preferably having this working under ubuntu-latest runner.
I've added basically the way I do this to illustrate below.
from docxcompose.properties import CustomProperties
from docx import Document
document = Document("WordTemplate.docx")
CustomProperties(document).update("my custom prop name", "my custom prop value")
document.save("new document name to save.docx")
My question: does docxcompose support Linux in setting Custom Properties?
I have a setup under ubuntu where I can debug etc. Any tips to investigate further would be very welcome.
Could this be a permission issue?
Is there a way I can check more deeply when a Custom Property is actually set or not?
Any pointers where/how to search would be very very welcome.
I do not encounter any exceptions along the way while debugging so I'm a little bit stuck in how to investigate further.
The original .py script I've added as a .txt file if it is of any help. That is somewhat more complex however.
Any pointers to help investigating any further would be very welcome. The most important answer would be the first question.
Is linux supported or not for doing this kind of things?
In my search to get solutions I found the following in the log when starting up my script that caught my attention.
"MSOffice not found on this system: Trying abiword instead"
Am I looking at setting Custom properties as a feature that isn't supported by Abiword?
Shouldn't MSOffice not be mentioned as a requirement/dependency in the README.rst?
I've build a Word document generator that sets Custom properties in a Word document (serving as template) and saves the document afterwards. Like that each time a new document is generated, but with other Custom Properties set that can be sent together with an offer.
This all works like a charm on Windows.
However, running this on an Ubuntu Linux box, the properties aren't set and stay their default value: "****" :-(
My intention was to get this working in a Github pipeline, so preferably having this working under ubuntu-latest runner.
I've added basically the way I do this to illustrate below.
My question: does docxcompose support Linux in setting Custom Properties?
I have a setup under ubuntu where I can debug etc. Any tips to investigate further would be very welcome.
Could this be a permission issue?
Is there a way I can check more deeply when a Custom Property is actually set or not?
Any pointers where/how to search would be very very welcome.
I do not encounter any exceptions along the way while debugging so I'm a little bit stuck in how to investigate further.
The original .py script I've added as a .txt file if it is of any help. That is somewhat more complex however.
Any pointers to help investigating any further would be very welcome. The most important answer would be the first question.
Is linux supported or not for doing this kind of things?
Thanks alot!
GenerateOfferDocuments.txt
The text was updated successfully, but these errors were encountered: