← Back to team overview

dhis2-devs team mailing list archive

Re: Generating a word document in dhis

 

Hi Morten

Thanks for the response. We are looking at apache *POI* and *docx4j*. We
are also looking at some node based solutions like *officegen*. There is
one more interesting software that we have evaluated called *pandoc*. This
is a very powerful tool and is capable of converting between different
formats (ODF, openXML document, Microsoft XML, JSON,Markdown..etc).

The general requirements we are looking at are (in case we go through the
server side approach). The API contract is still not clear to us. Will have
to spend some time on it.

But roughly it entails:
- Exposing an API that will take in the content and give out a word
document.
- The input DTO we will have to design which will have the details about
the styling, tables, images, paragraphs (the current requirement)

Does it look like a generic requirement? Would like to hear from about it
from Lars and others as well.

Regards
Vanya



On Mon, Jun 6, 2016 at 1:10 PM, Morten Olav Hansen <morten@xxxxxxxxx> wrote:

> Hi
>
> From the server side, what libraries are you looking into? POI? we already
> have POI in the classpath, so at least it wouldn't add any dependencies.
>
> If this is useful generic, I will let Lars answer... maybe you can write a
> bit more about your exact requirements, would you basically be supporting
> `iReport` like reports, just with `.docx` as output instead of `.pdf` ? (so
> that would include, charts, text, etc)
>
> --
> Morten Olav Hansen
> Senior Engineer, DHIS 2
> University of Oslo
> http://www.dhis2.org
>
> On Mon, Jun 6, 2016 at 12:54 PM, Vanya Seth <vanyas@xxxxxxxxxxxxxxxx>
> wrote:
>
>> Hi Devs
>>
>> It would be helpful to get your inputs on this aspect.
>>
>> Regards
>> Vanya
>>
>> On Tue, May 31, 2016 at 11:00 AM, Sultanahamar Mohammad <
>> sultanm@xxxxxxxxxxxxxxxx> wrote:
>>
>>> Hi Team,
>>>
>>> We have a use case where we have to generate word document off some
>>> charts, pivot tables and some commentary around them. For this we have
>>> explored some server side libraries. If we have a generic implementation
>>> around this, can we place it in dhis code and expose api. We have looked at
>>> couple of java based and node based libs.
>>> What are your thoughts around this?
>>>
>>> Regards,
>>> Sultan Ahamar.
>>>
>>
>>
>>
>> --
>> With Regards
>> ThoughtWorks Technologies
>> Hyderabad
>>
>> --Stay Hungry Stay Foolish!!
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~dhis2-devs
>> Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~dhis2-devs
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>


-- 
With Regards
ThoughtWorks Technologies
Hyderabad

--Stay Hungry Stay Foolish!!

Follow ups

References