jethro-pmm icon indicating copy to clipboard operation
jethro-pmm copied to clipboard

Export report as DOCX or PDF

Open tbar0970 opened this issue 6 years ago • 4 comments

Currently you can export a report a a CSV, which is good for raw data but has no formatting or grouping.

And you can copy and paste the report results into word, but that doens't work very well because there's lots of kruft attached to mobile numbers etc.

It would handy to be able to export the report in a fairly plain DOCX or PDF. And/or have a plain "printable" version like we do for rosters and run sheets.

tbar0970 avatar Dec 20 '18 06:12 tbar0970

See pull request #448. I've been using this all year now and have made a few minor adjustments to my local copy.

tim-pearce avatar Dec 20 '18 08:12 tim-pearce

I've been very slow to merge that pull request, I'm sorry. This FR is slightly different in that it's not a merge but just a dump of the data on the screen. But the same library might be useful here - thanks for the pointer.

tbar0970 avatar Dec 27 '18 09:12 tbar0970

Yes, the same library will work. The library I use is primarily an XML/HTML processor. The handling of documents is an add on which works on compressed XML, which is what these documents are. It enables you to create templates. One thing I would possibly change (or add) would be for the templates to be on the server. I haven't had a problem with the templates being offline because (1) it's just me and (2) the templates are on a Nextcloud server.

tim-pearce avatar Dec 30 '18 23:12 tim-pearce

+1

tbar0970 avatar Feb 15 '21 10:02 tbar0970