V
V
Viktor Taran2017-02-13 17:33:10
PHP
Viktor Taran, 2017-02-13 17:33:10

How to generate docx with pivot table?

task:
1. there is a certain report with a lot of data, the girls asked to make it with drag drop filters and so on, in short, it's crap, the filters just won't suit them.
Price-quality agreed on the generation of a pivot table in the dock file.
ca4e7fe8a1ec45e187a0caf11979e2b2.png
And they already know how to work with pivot tables, so they will already cheat there. BUT you need to collect it on the side of the site.
And so PHP + preferably free, or a reasonably priced library, or any other way.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton, 2017-02-13
@shambler81

So docx is a zip archive.
The document itself, as far as I remember, is xml.
So the manual option is to look at this xml, make a template out of it in a template engine that you know, render it, pack it back and rename it to docx.
This is in case they do not throw libraries here.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question