Author Topic: Document Generation - diagrams with fields together/set diagram size  (Read 1161 times)

gash272

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
This is a two part topic:
1. I need to generate a document where the diagram name, diagram image and diagram figure (label) appear together instead of spread over 2 pages. My diagram is long and so when I generate the report, it puts the diagram name as a heading on 1 page, then the diagram on a new page and then the diagram figure on the third page.

I have tried highlighting all three lines in the template and selecting: Keep together but it doesn't seem to lock them together.
I know I can resize the diagram after generation (or on the custom document) but then when you regenerate or update that section it resizes the diagram.

Any suggestions would be appreciated.

Template:
package >
diagram >
{Diagram.Name} Product Model
{Diagram.DiagramImg}
{Diagram.Figure}
< diagram
< package

2. As an hack-alternative - is there a way to set the diagram size in a document fragment/template, so that when you generate the document, the diagram will print at that size e.g. set the height to always be the same?
« Last Edit: July 04, 2024, 04:42:34 pm by gash272 »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13295
  • Karma: +557/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Document Generation - diagrams with fields together/set diagram size
« Reply #1 on: July 04, 2024, 05:22:42 pm »
The only solution I found is to resize the diagrams using a VBA script in MS-Word

I posted the script a few years ago here on the forum, so searching the forum should get you there.

Geert