We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

A alarm message popup when open the VDX file generate by ASPOSE

1) Code:


public static void main(String[] args) throws Exception {
License license = new License();
license.setLicense(“Aspose.Diagram.lic”);
// The path to the documents directory.
String dataDir = Utils.getDataDir(CreateDiagram.class);

Diagram diagram = new Diagram();

String templateFileName = “E:\Editor.vss”;
FileInputStream stream = new FileInputStream(templateFileName);

String masterName = “Module Begin”;
diagram.addMaster(src, masterName);
diagram.addMaster(templateFileName, “Action”);

// Adds shape with defined PinX and PinY.
diagram.addShape(2.0, 2.0, masterName, 0);
diagram.addShape(3.0, 2.0, masterName, 0);
diagram.addShape(4.0, 2.0, masterName, 0);
diagram.addShape(5.0, 2.0, masterName, 0);
diagram.addShape(6.0, 6.0, masterName, 0);
// Initialize a new page object
Page newPage = new Page();
newPage.setName(“new page”);
newPage.setID(100);
diagram.getPages().add(newPage);
diagram.save(dataDir + “CDiagram.vdx”, SaveFileFormat.VDX);
}


2) Error Information:

Open VDX Processing Log

Source: E:\Lihu\03 Project\01 IPlatform\02 Eclipse\co-visio\src\main\resources\com\aspose\diagram\examples\Diagrams\CreateDiagram\CDiagram.vdx

Sun Jan 24 21:14:51 2016 Begin Session

[Warning] DataType:
Context: Line 1 — ID='7’
Description: This file contains a duplicate of an element that can exist only once. Visio has ignored the duplicate element.


[Warning] DataType:
Context: Line 1 — ID='10’
Description: This file contains a duplicate of an element that can exist only once. Visio has ignored the duplicate element.


3) The vdx file also can’t open by Visio 2003. I attached the error message. Please check it

Sun Jan 24 21:14:51 2016 End Session

Hi Hugh,


Thank you for the inquiry. The warning message is about some duplicate element. Please let us know how you are generating this VDX drawing. Please also provide the input files to regenerate it on our side. It’ll help us in detecting the root cause of the problem.

1) Code:

public static void main(String[] args) throws Exception {
License license = new License();
license.setLicense(“Aspose.Diagram.lic”);
// The path to the documents directory.
String dataDir = Utils.getDataDir(CreateDiagram.class);

Diagram diagram = new Diagram();

String templateFileName = “E:\Editor.vss”;
FileInputStream stream = new FileInputStream(templateFileName);

String masterName = “Module Begin”;
diagram.addMaster(src, masterName);
diagram.addMaster(templateFileName, “Action”);

// Adds shape with defined PinX and PinY.
diagram.addShape(2.0, 2.0, masterName, 0);
diagram.addShape(3.0, 2.0, masterName, 0);
diagram.addShape(4.0, 2.0, masterName, 0);
diagram.addShape(5.0, 2.0, masterName, 0);
diagram.addShape(6.0, 6.0, masterName, 0);
// Initialize a new page object
Page newPage = new Page();
newPage.setName(“new page”);
newPage.setID(100);
diagram.getPages().add(newPage);
diagram.save(dataDir + “CDiagram.vdx”, SaveFileFormat.VDX);
}

2) I have attached vss file

3) The vdx file also can’t open by Visio 2003. I attached the error message. Please check it
Hi Hugh,

Thank you for the inquiry. You have not attached the require VSS stencil yet. Unfortunately, Aspose forums don't allow uploading Visio files directly. Please make a zip of the stencil file and attach to the reply post. We're looking forward to help you.

I zip my vss to rar file and try to upload files, but still failed. I don’t know why

Hi Hugh,

Thank you for updating us. Another way is that, you can upload its zip archive on some online free file sharing server, e.g. Dropbox, Google drive or One drive etc, and provide us the file download url. Once it is available to us, we'll start investigating the root cause of the warning message on our side.

I upload vss successful today. Please check it.

Hi Hugh,


Thank you for supplying the require stencil. We managed to replicate the warning message of a duplicate element. We’ve logged this problem under ticket id DIAGRAMJAVA-50292 in our bug tracking system. Your post has also been linked to this issue. We’ll keep you informed regarding any available updates. We’re sorry for the inconvenience caused.

Hi Hugh,


Thank you for being patient. We have a good news for you that the issue id DIAGRAMJAVA-50292 has now been resolved. If there is no issue in the QA phase, then this fix will be included in the next version of Aspose.Diagram for Java 6.1.0. We’ll inform you via this forum thread as soon as the new release is published.

The issues you have found earlier (filed as DIAGRAMJAVA-50292) have been fixed in Aspose.Diagram for Java 6.1.0.


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