Book a Demo

Author Topic: Strange behaviour of RTF report concerning tables  (Read 6482 times)

Jonathan Lubach

  • EA User
  • **
  • Posts: 40
  • Karma: +0/-0
    • View Profile
Strange behaviour of RTF report concerning tables
« on: September 15, 2012, 12:57:02 am »
Hey folks,

I have the following problem:

In my RTF template there is the following structure:

connector >
source >
element >
----------------------------------------------
|{Element.Name}  |{Element.Alias}     |
----------------------------------------------
< element
< source
< connector

The dashes and vertical dashes shall represent a table with one row and two columns. So for each connector only the source element's name and alias shall be printed in the report as a table with x rows when there are x connectors.

In the report all rows excluding the last row (bottom row of the resulting table) are printed correctly. The text in the cells is aligned left with no indent. But the last row's cell's text is indented about 1.5cm?!?

Like this:
--------------------------------------------------
|{Element.Name}      |{Element.Alias}     |
--------------------------------------------------
|{Element.Name}      |{Element.Alias}     |
--------------------------------------------------
|    {Element.Name}  |   {Element.Alias}  |
--------------------------------------------------

I have to say, that the whole table is positioned with an offset from the left page border by 1.5cm.

Did I do something wrong with the template?

Thanks!
Jonathan
Enterprise Architect Corporate Edition v12.1
Windows 7 64bit

Ian Mitchell

  • EA User
  • **
  • Posts: 507
  • Karma: +22/-4
  • The eaDocX and Model Expert guy
    • View Profile
Re: Strange behaviour of RTF report concerning tab
« Reply #1 on: September 17, 2012, 06:15:53 pm »
If you need highly-formatted document, have you looked at eaDocX?
Ian Mitchell, Designer, eaDocX


www.eaDocX.com
www.theartfulmodeller.com

Jonathan Lubach

  • EA User
  • **
  • Posts: 40
  • Karma: +0/-0
    • View Profile
Re: Strange behaviour of RTF report concerning tab
« Reply #2 on: September 17, 2012, 07:36:52 pm »
Quote
If you need highly-formatted document, have you looked at eaDocX?

Ian,

thanks. But this answer did not help me at all. The features of eaDocX are not sufficient enaugh to fulfill our needs. The possibilities in formatting tables and the tables contents are not enaugh.

Jonathan
Enterprise Architect Corporate Edition v12.1
Windows 7 64bit

Stefan Bolleininger

  • EA User
  • **
  • Posts: 308
  • Karma: +0/-0
    • View Profile
Re: Strange behaviour of RTF report concerning tab
« Reply #3 on: September 17, 2012, 07:44:51 pm »
Can you provide us a few more details about your template, or maybe provide us the complete template for investigation?

Regards

Stefan

P.S. Sie haben eine neue Nachricht :-)
Enterprise Architect in "safetycritical development" like medical device industry. My free Add-in at my Website

Jonathan Lubach

  • EA User
  • **
  • Posts: 40
  • Karma: +0/-0
    • View Profile
[Update] Re: Strange behaviour of RTF report conce
« Reply #4 on: September 17, 2012, 11:12:03 pm »
Hi folks,

I got another instance of this problem where all table cells are formatted in the wrong way like the third row in the table of my first post...

From investigating the element's content printed into the report I found out, that the text of the diagram note (which has been printed directly above the table) contains a paragraph break.

When I delete this break, the report is correctly formatted; when I re-add this paragraph break, it is like described above.

Another thing: When I select "Optimize for Open Office" both solutions work properly. So it has something to do with the paragraph break in the "Diagram.Notes" field and the field itself causing this problem.

Jonathan
Enterprise Architect Corporate Edition v12.1
Windows 7 64bit

Jonathan Lubach

  • EA User
  • **
  • Posts: 40
  • Karma: +0/-0
    • View Profile
Re: Strange behaviour of RTF report concerning tab
« Reply #5 on: November 27, 2012, 09:38:13 pm »
Hi,

i have a similar problem again:

In my RTF-Template I have a table with 5 columns. The table lists elements of a package, so I created a table with 5 cols and 2 rows where the first row is the header row (not repeated for all elements).

In the last column I use the document part "Run State" where I use all fields. When I run the report, the first element's Runstate is not correctly replaced: In the generated report there stands {ElemRunState.Variable} instead of the correct value which I assigned in EA.

This only appears in the first row of the table (first element). I can reorder the elements, it is always the first row.

Does anybody know any hint?

Thanks!
Jonathan
Enterprise Architect Corporate Edition v12.1
Windows 7 64bit

OpenIT Solutions

  • EA User
  • **
  • Posts: 555
  • Karma: +9/-1
    • View Profile
Re: Strange behaviour of RTF report concerning tab
« Reply #6 on: November 29, 2012, 12:15:46 am »
I beleive this is a known bug ? I've hit it before, not sure if its been fixed in latest release or the beta.

Regards,

Jon.