cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to add a MetaPicture to RTF report

Solved
Highlighted
Occasional Contributor

How to add a MetaPicture to RTF report

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.

Tags (3)
2 Replies
Frequent Contributor

Re: How to add a MetaPicture to RTF report

Hi,

 

It seems that this article will help you.

Rgds,

 

LM

 

http://community.mega.com/t5/custom/page/page-id/mega-kb-solution?sid=50120000000mqMZAAY

 

 

Lionel Mazurié
MEGA

Re: How to add a MetaPicture to RTF report

Hello Ralf

 

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.

 

rtf_descriptor_objectpicture

 

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. 

Jerome