Oct-08-2019, 03:36 PM
Hello there,
im a python newcomer and i decided to make the following my first python project. Im a state official from Germany and i help disabled people there as an administrator. We of course have a Program which helps us in our outgoing Papers.
The Problem is as follows:
Our social workers develop a plan to help the disabled people. I get an documentation of that. Some datas from this word document translate into my outgoing official letter. This information doesnt get transfered to my document automatically. You can imagine the problem like the following:
Document A (from the social worker which goes to me)
Date created 27.09.2019
Period of service 01.09.2019 - 29.02.2020
...
Document B (the document i have to create)
...referring to the document of 27.09.2019...
...we hereby grant the service from 01.09.2019 - 29.02.2020 ...
My solution methods:
In my opinion the code should look like this
#define variables
Date created = First line after 3rd word number
Period of service = 3rd line after 3rd word number
#insert them into my papers
Date created insert variable=first line after "of"
Date created insert variable.add_run(Date created)
[...]
-----------------------------
as ive said the "docx" expansion for python works realy well. but it cant define a place in the word data as an variable so i could insert something there. neither it can "read" a document and define things i need later for my papers.
So can you guys help me out? This is realy a project of my heart for me because even though im not a professional programmer, my work (which i realy love) provides me the problems which i could solve with my future to be hobby.
Looking forward for your replies

im a python newcomer and i decided to make the following my first python project. Im a state official from Germany and i help disabled people there as an administrator. We of course have a Program which helps us in our outgoing Papers.
The Problem is as follows:
Our social workers develop a plan to help the disabled people. I get an documentation of that. Some datas from this word document translate into my outgoing official letter. This information doesnt get transfered to my document automatically. You can imagine the problem like the following:
Document A (from the social worker which goes to me)
Date created 27.09.2019
Period of service 01.09.2019 - 29.02.2020
...
Document B (the document i have to create)
...referring to the document of 27.09.2019...
...we hereby grant the service from 01.09.2019 - 29.02.2020 ...
My solution methods:
In my opinion the code should look like this
#define variables
Date created = First line after 3rd word number
Period of service = 3rd line after 3rd word number
#insert them into my papers
Date created insert variable=first line after "of"
Date created insert variable.add_run(Date created)
[...]
-----------------------------
as ive said the "docx" expansion for python works realy well. but it cant define a place in the word data as an variable so i could insert something there. neither it can "read" a document and define things i need later for my papers.
So can you guys help me out? This is realy a project of my heart for me because even though im not a professional programmer, my work (which i realy love) provides me the problems which i could solve with my future to be hobby.
Looking forward for your replies

