Book a Demo

Author Topic: EA report export to DOCX - help requested  (Read 3795 times)

JamesHacker

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
EA report export to DOCX - help requested
« on: October 15, 2009, 06:19:37 pm »
Hi!
I have created an external program that is able to call the EA "Automation Interface" (AI).

What I need to do: Use this API to extract models, packages etc from EA and generate a DOCX file (DOCX being based on so-called Open XML.

I am using C# for the sole reason that I think I will be using the .NET Open XML SDK V2 library/API.

Can anyone provide some code (in c# or another language) that creates DOCX files using EA AI"? If not, even tips will be welcome! I'm a java programmer, and am new to both C#, OPEN XML SDK and AI.

Alternatively, does anyone have a ready-made EA plugin to do this?
Thanks for any info or assistance!

James

JamesHacker

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: EA report export to DOCX - help requested
« Reply #1 on: October 16, 2009, 06:58:10 pm »
To reply to my own topic, The .NET route is not practical. The .NET so-called Open XML SDK is practically usable for this purpose (it seems to be a badly designed and difficult to use API). Event the .NET evangelist bloggers say that this kind of problem is very difficult in .NET.

The conclusion that I have come to, it that it is far more practical to use Java (with an IDE like Eclipse) and Java libs to unzip the DOCX files and maniplulate the XML files and other contents.

For a basic but informative example, see,
http://www.infoq.com/articles/cracking-office-2007-with-java

Apache POI, at time of writing, might be able to work with DOCX at sufficient level, possibly, but it seems a bit bleeding edge for DOCX, but I have not researched this heavily.

Please get in touch if someone has done something like this.
Thanks

JamesHacker

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: EA report export to DOCX - help requested
« Reply #2 on: October 20, 2009, 07:03:02 pm »
SOLVED.
Mogwai http://mogwai.sourceforge.net/?Welcome   have made available a plugin that allows EA projects to be exported as reports to DOCX.
Happily, "EA Report" is open source and written in Java.
http://mogwai.sourceforge.net/?Welcome:EAReport

Thanks and thanks to the Mogwai guys,

James