Hallo together,
what I want is to insert a picture into a model within a report.
I can insert rounded rectangles, lines, texts ... into a model. I also can insert a picture manually into a model or insert a picture into an output document. That's all fine.
But I don't know how to insert a picture into a model with a report. That sounds simple but all I tried was not successful.
The picture is a *.png-file stored in ARIS in the common files group.
I would be very happy if anyone can help me.
Many thanks in advance.
Holger
Robert Goldenbaum on
Should work like this
var output = Context.createOutputObject(); var imageData = Context.getFile("mylogo.png", Constants.LOCATION_INTERNAL) var image = Context.createPicture(imageData, Constants.IMAGE_FORMAT_PNG); output.OutGraphic(image, -1, 70, 70);// write scaled image (7cm x 7cm) to the output object