We want to add Dynamic Pictures to RTF reports, which we get as a MetaPicture.
How can you get the Image of this MetaPicture (or StdFile, doesn’t matter) directly or, at the very least, its absolute Path (i.e. something like “C:\Program Files (x86)\MEGA\MEGA 2009 SP5\Mega_Usr\example.bmp”)?
The context is that we want to include a set of Images connected to an Object in its description.
Solved! Go to Solution.
It seems that this article will help you.
I assume that you know that when editing a RTF descriptor, an item 'Object Picture' is available.
When dropped to a text, a tag <Object picture/> is created.
When the RTF descriptor is run, this tag is automatically replaced with the MetaPicture configured for object MetaClass in MEGA.
If for this MetaClass object (ex Org-Unit), a MetaAttribute is set as a category (ex: Org-Unit Type), it is possible to configure a MetaPicture for each MetaAttributeValue of the categorizing MetaAttribute.
When the RTF descriptor is run for an object type (ex: Org-unit of type structure), the tag is automatically replaced with the MetaPicture configured for the MetaAttributeValue in MEGA.
If this feature is not enough, consider to developp a RTF macro as proposed by Lionel.
Be careful. Complex code will be difficult to maintain and may not run in a future version.