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

Extraction of diagram using rtf macro

Mounika
MEGA Partner
MEGA Partner
Hello ,
I have written a rtf macro in rtf descriptor .
My complete logic of scripting is done.
Now i want to extract the diagram of the object in to word document.
But, i am stuck over here.
I don't know what syntax i can use in macro in order to extract the diagram into word document .
Can some one help me.
6 Replies

Hello ,

Thanks for your suggestion .

I thought about it indeed your right , so i have changed my approach .

I have writen a Macro in the Query itself by changing its format from "select " to "Macro" and returned its result set to the Descriptor .

With the result set i have inserted diagram as we do in a descriptor and it worked for me .

 

Thank You .

Be careful with this method as it might work locally but not on other installation. It may not work in web.

 

Make sure you do testing from an end user point of view

I thought about your advice but the data which i want to extract has too many filters and its quite complex logic cant do it via query.
Any how i found a way i saved the diagram as image in a temp location and then i have inserted into word document using insertshapes command.
It worked for me.
Thanks

What I meant is that in the macro I don't think you can expose the diagram.

 

You should rethink your descriptor to leverage the default capability to put the diagram in the Word instead of trying to do it in a macro

Hello,
Thanks for your reply.
I have used description diagram but i am getting typemismatch error.
I have written the code as below
Objselection. Typetext ""&object. Getcollection("description").item(1)
I have feeling that i am getting this error because i am using typetext.
But i am not sure which syntax i should use so that i can extract it into word document

oguimard
Retired

Why don't you use the description diagram to extract the diagram ?