Copy Shape from one Visio File to another

The issues you have found earlier (filed as DIAGRAMJAVA-50234;DIAGRAMJAVA-50235;DIAGRAMJAVA-50236;DIAGRAMJAVA-50238) have been fixed in Aspose.Diagram for Java 5.9.0.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.

Hi Shubhi,


In reference of the ticket id DIAGRAMJAVA-50238, please modify the sample code as follows:

[Java]
String pageName=“Page-1”;
// Initialize a new page object
Page newPage = new Page();
// Set name
newPage.setName(“new-page”);
// Set page ID
newPage.setID(MaxPageId + 1);

//add this line to copy theme
newDiagram.copyTheme(srcVisio);
//add this line to copy pagesheet
newPage.getPageSheet().copy(srcVisio.getPages().get(0).getPageSheet());

Please let us know in case of any confusion or questions.