Book a Demo

Author Topic: Center image in generated document  (Read 3001 times)

MatthiasVDE

  • EA User
  • **
  • Posts: 196
  • Karma: +1/-0
    • View Profile
Center image in generated document
« on: April 15, 2020, 06:21:19 pm »
I centered the {Diagram.DiagramImg} field in my template, but after generating the document it's always aligned left.
Am I missing something? Should this be determined in the stylesheet?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Center image in generated document
« Reply #1 on: April 15, 2020, 06:23:32 pm »
Yes, we use the styles "Diagram Image" and "Diagram Label" who are center aligned for this.

Geert

MatthiasVDE

  • EA User
  • **
  • Posts: 196
  • Karma: +1/-0
    • View Profile
Re: Center image in generated document
« Reply #2 on: April 15, 2020, 08:59:59 pm »
What is the appropriate way to center something? I centered it with the "center" button at the top (Paragraph) but it doesn't work.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Center image in generated document
« Reply #3 on: April 15, 2020, 09:16:39 pm »
- Open style sheet,
- Edit style (you are now in "Edit mode", notice the ever so slightly different color in the fonts) ::)
- center (with the button on top)
- click somewhere to exit "edit mode"
- save stylesheet.

To check if it worked on your template you have to update the styles.

Geert