Book a Demo

Author Topic: Image Assets in Generated Reports  (Read 5647 times)

stevesavage

  • EA User
  • **
  • Posts: 119
  • Karma: +4/-0
    • View Profile
Image Assets in Generated Reports
« on: January 07, 2017, 10:02:57 am »
We've started using Image Assets to import Interface Mockups created in an external tool in to Sparx EA.
http://www.sparxsystems.com.au/enterprise_architect_user_guide/13.0/modeling_tools/image_assets.html

I created several image assets by dragging some PNG files on to a diagram, and selecting "Image Asset" as the element type.

But I'm having some issues getting them to show up in reports:
"They can also be used in documentation by inserting hyperlinks to the Image Asset element."

I tried:
package >
  element >
  {Element.Hyperlink}
  child elements >
< package

And that didn't work.
Anyone have any success yet?

My workaround is creating a diagram under the image asset to include the image.

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: Image Assets in Generated Reports
« Reply #1 on: January 09, 2017, 11:21:31 am »
The Help directs you to creating a hyperlink in the element Notes or in a linked document. When a report is generated on the element, that hyperlink is actioned and the Image Asset's owned image is shown in the report.
Best Regards, Roy

stevesavage

  • EA User
  • **
  • Posts: 119
  • Karma: +4/-0
    • View Profile
Re: Image Assets in Generated Reports
« Reply #2 on: January 10, 2017, 04:32:43 am »
Hi Roy,
I don't think we're talking about the same thing.
The user guide mentions linking to an asset in my notes, or a linked document.

I want to know how to reference an asset's image directly in an RTF reporting template so that when the report is looping through the image assets in a package, the images will be displayed in the report.

E.g.
Package 1 = P1
P1.Asset1
P1.Asset2
P1.Asset3

Select P1, create documentation

Report generates.
Header 1 = P1.Name
P1.Notes

Header 1.1 = Asset1.Name
Asset1.Image
Asset1.Notes

Header 1.2 = Asset2.Name
Asset2.Image
Asset2.Notes

Etc.
« Last Edit: January 10, 2017, 04:34:50 am by stevesavage »

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8090
  • Karma: +118/-20
    • View Profile
Re: Image Assets in Generated Reports
« Reply #3 on: January 10, 2017, 08:32:03 am »
I want to know how to reference an asset's image directly in an RTF reporting template so that when the report is looping through the image assets in a package, the images will be displayed in the report.
You can't. The substitution is only performed when processing notes. However, you can just insert the image directly into the template to achieve the same effect.
« Last Edit: January 10, 2017, 08:38:16 am by Simon M »