Book a Demo

Author Topic: Large spaces when generating documents  (Read 8399 times)

whitmj

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Large spaces when generating documents
« on: May 22, 2015, 08:47:02 am »
I am trying to generate a document off of a template, and I keep getting these huge blank spaces between information.  Is there a way to generate these documents without this? I tried tightening up the template and making sure there wasn't much space there, but that didn't work.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8104
  • Karma: +118/-20
    • View Profile
Re: Large spaces when generating documents
« Reply #1 on: May 22, 2015, 08:51:15 am »
You'll need to specify what version of EA you are using and what template.

whitmj

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Large spaces when generating documents
« Reply #2 on: May 23, 2015, 12:25:05 am »
Haha yah that would probably be helpful. Sorry about that! I am using version 12 and the template I was using was the requirements report with details.

skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
Re: Large spaces when generating documents
« Reply #3 on: May 29, 2015, 10:19:42 am »
I agree, EA 11 and now EA 12 are getting gradually worse.
In EA extra new lines are being added before and after bullets from notes, sometimes after paragraphs too, and in templates where expanded text in null the newlines from the template are left in rather than being omitted.

In general EA itself SHOULD NEVER EVER insert a new line.
New lines should only occur when specified:
  • in the template (and then suppressed if they are on a line where expanded content is null)
  • actually in a note (specifically DO NOT add new lines at the end of notes, e.g. of a list is the last thing in a note)
Orthogonality rules
Using EA16.1 (1627) on Windows 11 Enterprise/64 bit. Repositories in SQLServer2019 DB Schema 1558.
WebEA on Pro Cloud Server 4.2.64

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8104
  • Karma: +118/-20
    • View Profile
Re: Large spaces when generating documents
« Reply #4 on: June 01, 2015, 09:44:04 am »
Quote
I agree, EA 11 and now EA 12 are getting gradually worse.
Who are you agreeing with? No-one even suggested that.

skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
Re: Large spaces when generating documents
« Reply #5 on: June 02, 2015, 07:15:15 am »
Quote
Who are you agreeing with? No-one even suggested that.
With whitmj.
People generally don't post on the forums about issues like this unless something has changed for the worse.
Orthogonality rules
Using EA16.1 (1627) on Windows 11 Enterprise/64 bit. Repositories in SQLServer2019 DB Schema 1558.
WebEA on Pro Cloud Server 4.2.64

skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
Re: Large spaces when generating documents
« Reply #6 on: June 03, 2015, 11:47:16 am »
And as evidence of change (for the poorer) I offer

White space, new lines, in RTF templates
Orthogonality rules
Using EA16.1 (1627) on Windows 11 Enterprise/64 bit. Repositories in SQLServer2019 DB Schema 1558.
WebEA on Pro Cloud Server 4.2.64

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8104
  • Karma: +118/-20
    • View Profile
Re: Large spaces when generating documents
« Reply #7 on: June 03, 2015, 03:15:28 pm »
whitmj appears to be a new user. I think most people post on forums simply because they can't get things working the way they want. (In your case, your most frequent post is that something hasn't changed)

Do you realise that the post that you are using to support your argument of things getting worse is from 2010? Have you tried constructing a template in version 8 (which was in beta at the time) recently for comparison?

If you want to compare anything, try running v8 with the default templates and compare to v12 with the default templates. I would expect EA 12 documents to look much better (although they would also take longer to generate)
« Last Edit: June 03, 2015, 03:21:00 pm by simonm »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13505
  • Karma: +572/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Large spaces when generating documents
« Reply #8 on: June 03, 2015, 04:07:50 pm »
A few years ago (when version 7.5 was brand new) I needed documents for a client and I evaluated the internal RTF generation.
Back then I came to the conclusion that RTF document generation was simply not flexible enough to fulfill my requirements, and I decided to build a custom document generator.
One year later I did the same for another client.

Now recently I again had a client with very specific document generation needs. The problem at this client is that they don't have their own development team, so building a custom solution was not really an option.

I then again evaluated the RTF document generation and, to my surprise, it can do everything I need.
With the virtual documents, script and SQL fragments I can make document exactly the way the client needs, without the need to use an additional add-in.

So my experience is the RTF document generation has improved a lot over the years. I'm even pushing my client to upgrade from v10 to v12 because of some improvements in the document generation (cover pages, not printing empty tables, direct .docx generation, improved table of contents)

And no, I don't have extra blank space in my documents.
I think there was only one instance where I had to add a hard newline into a template because otherwise it would mess up my styles.

Geert

Charles England

  • EA User
  • **
  • Posts: 27
  • Karma: +1/-0
    • View Profile
Re: Large spaces when generating documents
« Reply #9 on: June 03, 2015, 08:02:05 pm »
I'm using V12 and have found the RTF generator getting significantly better except for some annoying bugs - inserted whitespaces, inconsistent use of bullets spring to mind.
I raised a bug about the new lines about two versions ago and it was accepted  but it hasn't been fixed.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8104
  • Karma: +118/-20
    • View Profile
Re: Large spaces when generating documents
« Reply #10 on: June 04, 2015, 12:40:04 pm »
Geert and Charles,

Thank you for your positive feedback. It's always nice to hear that your work is appreciated.

whitmj, I'm sorry for not answering your post directly earlier. I have run the "Requirements Report - Details" report and I'm not getting any superfluous whitespace. If you haven't already, it's probably a good idea to email support.

I did notice you said that you tried removing space. Have you modified the template? There may be hidden bookmarks in the standard template. If you've customized it, especially by removing anything that could have actually caused a problem.

skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
Re: Large spaces when generating documents
« Reply #11 on: June 05, 2015, 07:27:04 am »
Quote
I would expect EA 12 documents to look much better (although they would also take longer to generate)
I agree unquestionably that generated documents have improved greatly.

I see generated documents as the primary method of communicating aspects of the model to a wider audience.

Currently my view of v12 document generation is that I can mostly use the raw generated document for review, but have to fine tweak the layout for a final version.

Issues for me are
  • the insertion of white space, e.g. repeated new line characters (I'd love an option to suppress these), by the document generator; I manage white space in a document using Styles and the template document (and I am very careful in the template document to minimise whitespace)
  • diagrams at are zoomed > 100% because the width of the diagram is less than the page size defined in the diagram settings
  • The EA document generator does seem to consistently and completely apply paragraph styles from the model template to the generated document (I suspect this may be because normal.rtf is still an rtf, not a docx)
  • the document generator not suppressing empty lines when there is no (null) inserted content
« Last Edit: June 05, 2015, 07:28:01 am by skiwi »
Orthogonality rules
Using EA16.1 (1627) on Windows 11 Enterprise/64 bit. Repositories in SQLServer2019 DB Schema 1558.
WebEA on Pro Cloud Server 4.2.64

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8104
  • Karma: +118/-20
    • View Profile
Re: Large spaces when generating documents
« Reply #12 on: June 05, 2015, 08:07:28 am »
Quote
  • the document generator not suppressing empty lines when there is no (null) inserted content
It doesn't happen automagically, but you can do that from v11 by adding bookmarks around the item being inserted including the trailing newline.

skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
Re: Large spaces when generating documents
« Reply #13 on: June 05, 2015, 08:09:56 am »
Quote
Quote
  • the document generator not suppressing empty lines when there is no (null) inserted content
It doesn't happen automagically, but you can do that from v11 by adding bookmarks around the item being inserted including the trailing newline.
great tip, thanks
Orthogonality rules
Using EA16.1 (1627) on Windows 11 Enterprise/64 bit. Repositories in SQLServer2019 DB Schema 1558.
WebEA on Pro Cloud Server 4.2.64