Check on my YouTube -> https://youtu.be/pXsSaKJ_2TY
Filling word forms was too time-consuming in the company.
By setting a word doc template with tag-words, and developing a script to replace them from the data of two .xlsx, which are faster to fill.
I learned how to optimize filling word docs.
Make sure you have a python.exe set as an environmental variable in PATH
Control panel > System > Advanced system settings > Environment Variables
Under "User variables", select "Path" > Edit > New >
Type the path to your python.exe
Move this path to the top of the list
- Fill the .xlsx in "input" with data, add a sampling plan form
- Run "run.bat"
- Volumes will be checked and a words doc will be filled by sample.
- Files will appear in "output"
- When filling both xlsx, mind the formatting: point as decimal sepator
- input\1_client_project.xlsx
Generic information (client and project) - input\2_sampling_data.xlsx
Measurements taken in the field during sampling - input\FT-14.xls
Measurements taken in the field during sampling - template\FT-23 TEMPLATE.docx
The basic template for the forms to be filled - 1_run.bat
Used to run python - LICENSE
License in GitHub - README.md
This readme
- output\
directory where filled forms and reports are saved to - template\
directory where .py and teamplate are stored