S
S
Sergey_mur2017-09-21 17:24:13
Django
Sergey_mur, 2017-09-21 17:24:13

How to generate docx file in python?

Hello.
I work in a design organization where there is a task to generate docx files for supporting documentation.
Accordingly, I would like to understand where to dig and where to get information. I want to create a docx file where the file properties will be immediately filled in, a stamp will be applied, a frame, and so on. Also, the document must have a specified number of sections, where there will be separate headers and footers for the first sheet of the section and the rest.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
Ilyas, 2017-09-21
@id2669099

and if you look towards VBA macros? with their help, you can write a certain sequence of actions

T
Tair Negmetzhanov, 2017-09-22
@ntg05

look here,
https://python-docx.readthedocs.io/en/latest/
Russian example
pythono.ru/docx-python

V
Vampre, 2018-08-17
@Vampre

Here https://otus.ru/events/webopen2/113/ about working with xlsx files directly without special libraries. dosx similar https://otus.ru/events/webopen2/113/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question