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

Extract Diagrams from HOPEX into a Word File using aspose.words

simikadampatta
Trusted Contributor

Hello,

I am trying to perform Word Document Generation (.docx) using Aspose.Words in Java.

On clicking a customized button, the code collects data (Application Name, Department, etc). from the repository and prints it in a Word Document as per the required template. 
I am unable to figure out how to print Diagrams into the Document.

I want to extract and print diagrams like Application Structure Diagram, Class Diagram, Object Diagram, Scenario of Application Flows Diagram etc. into the Word Document when I generate it.

Please guide me how to do this.

3 Replies

simikadampatta
Trusted Contributor

I am creating the Word Document using Aspose API for Java.

For Eg: For extracting Application Name, I used appObj.getProp("~Z20000000D60[Short Name]") where appObj is the application object.

In a similar way, how can I extract and print the diagram into my word document using Java?

hsoegaard
MEGA Partner
MEGA Partner

In your descriptor you need to insert a group using the metaassociation Description. When you have created the new group, you can now right-click on the new group and selct Insert. Here you will see the option to insert a diagram. In the options of the diagram you set additional properties, scaling etc.

2022-02-02_07h43_45.png2022-02-02_07h47_09.png

simikadampatta
Trusted Contributor

Attaching sample of generated Document.