Sparx Systems Forum

Enterprise Architect => Suggestions and Requests => Topic started by: Eugen Wiebe on November 25, 2010, 11:05:53 pm

Title: RTF generation with images and tables
Post by: Eugen Wiebe on November 25, 2010, 11:05:53 pm
(see also: http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1290675492)

I have feature requests:
1. Make possible to add images to elements
2. Make possible to add tables

These should be correctly added to RTF document

Why? Because in our original SystemRequirementSpecifcation in Word images and tables are often used. And if you want to create a SRS now in EA and then export to RTF (to give e.g. to the customer or use internally) it should contain the same elements as in original document.

Or describe an alternative way how to do this.
Thanks.
Title: Re: RTF generation with images and tables
Post by: skiwi on November 26, 2010, 07:25:08 am
I'm note clear where you want to be able to put tables and images.

If you mean in notes, then I have a lot of sympathy with your request, especially as notes let you paste such things into them, then cruelly just display the html (http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1275011917)! (a bug (http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1260999778) imho).

However both images and tables can be added using linked documents (http://www.sparxsystems.com/enterprise_architect_user_guide/8.0/modeling_fundamentals/linking_documentation.html).
Title: Re: RTF generation with images and tables
Post by: Eugen Wiebe on November 26, 2010, 10:03:16 pm
OK, again.
I have several requirements, and in the original Word document, there are sometimes pictures or Word-Tables used to better describe a requirement.

So, now I want to create an EA project (I have already a template) and put all requirements in there, also the bitmaps and tables for each requirement.

Afterwards I would generate document as RTF and it should look like (or be similar to) original Word document.
It should for each requirement show the text of the requirement (Notes) and also the Table and image.

Through RTF template I can manage Notes, Alias ... of the requirement, but how is about image and table?
I dont want to set the appearance of the requirement diagram to an alternative image and there use the wished image.

I thought, it would be possible to insert (copy/paste) image and table to Notes of the requirement ... but it seems, it isnt.


I have also read:
http://www.sparxsystems.com/downloads/whitepapers/Working_with_the_RTF_generator.pdf
but it did not help.

Is there a way (or an other way) to add images and tables to RTF document for each element?
Title: Re: RTF generation with images and tables
Post by: Eugen Wiebe on December 01, 2010, 07:08:37 pm
For table generation in RTF:
http://www.devx.com/asp/Article/17964/0/page/3
Title: Re: RTF generation with images and tables
Post by: johann on December 11, 2010, 02:25:34 am
Hallo Eugen,

for a past project we tried to generate a Word document using RTF templates and document generation out of Enterprise Architect. We tried hard for several weeks, but ran into problems for several reasons:

Finally, we gave up generating an Word document. EA is not a proper tool for this kind of output, and Microsoft Word makes all even worse.

Then we came up with the following solution:
We exported all packages of our model to XMI format. The images and tables in the linked documents where exported (in HTML format), too. Then we ran XSLT stylesheet on the XMI data that replaced the RTF templates and additionally integrated the content of the linked documents into the documents. The format of the resulting documents was XHTML that could be easily converted to PDF.

That worked great and produced the desired documents. But if it is done this way, one needs proficient knowledge in XML, XSLT and XHTML/CSS technology.
Title: Re: RTF generation with images and tables
Post by: skiwi on December 13, 2010, 07:30:40 am
Quote
there were many relationships between linked elements that we wanted to document, but that simply could not be expressed with a template

For example ...
Title: Re: RTF generation with images and tables
Post by: AndyJ on December 13, 2010, 11:50:49 am
Eugen,

Is it EA diagrams that you're trying to copy into your word documents?

If so, have a look at "copy RTF bookmark" in the help text.

Following Sparx's instructions, I'm creating RTF documents that contain all the material that I need in my Word documents.

In the Word documents, I have pasted links to "RTF bookmarks" that are embedded in the RTF file.

Provided that you add those bookmarks appropriately, you can update your Word documents to show new information with a few key presses...

i.e. F8 to generate an updated RTF (In EA)

Ctrl-A (Select all in Word)
F9 (Update all selected in Word)

Title: Re: RTF generation with images and tables
Post by: johann on December 14, 2010, 03:15:35 am
hi skiwi,

..one example is the generation of a thorough traceability matrix of requirements/solutions/realisation/verification for the development of software for safety critical systems (as demanded by the standards document IEC61508).

regards
Johann