Hi. I am new to Aspose. I downloaded aspose-diagram-17.5 along the GIT Aspose.Diagram-for-Java-master example files and I am getting errors trying to compile the examples. Not a good start out experience! Where is the best place to find getting started information: examples, etc that will work
Thanks
Clyde
Hi Imran:
Thank you for responding. I added aspose.words to the class files but the errors persist. Note the following for the sample code:
<pre style=“background-color: rgb(255, 255, 255); font-family: “Courier New”; font-size: 9pt;”>getInheritFill is causing the problem
<pre style=“background-color: rgb(255, 255, 255); font-family: “Courier New”; font-size: 9pt;”>public static void main(String[] args) throws Exception {
// ExStart:AddWindowElementInVisio
// The path to the documents directory.
String dataDir = Utils.getSharedDataDir(RetrieveInheritedFillData.class) + “Shapes/”;
// Call the diagram constructor to load a VSDX diagram
Diagram diagram = new Diagram(dataDir + “Drawing1.vsdx”);
// Get page by ID
Page page = diagram.getPages().getPage(“Page-1”);
// Get shape by ID
Shape shape = page.getShapes().getShape(1);
// Get the fill formatting values
System.out.println(shape.getInheritFill().getFillBkgnd().getValue());
System.out.println(shape.getInheritFill().getFillForegnd().getValue());
System.out.println(shape.getInheritFill().getFillPattern().getValue());
System.out.println(shape.getInheritFill().getShapeShdwObliqueAngle().getValue());
System.out.println(shape.getInheritFill().getShapeShdwOffsetX().getValue());
System.out.println(shape.getInheritFill().getShapeShdwOffsetY().getValue());
System.out.println(shape.getInheritFill().getShapeShdwScaleFactor().getValue());
System.out.println(shape.getInheritFill().getShapeShdwType().getValue());
System.out.println(shape.getInheritFill().getShdwBkgnd().getValue());
System.out.println(shape.getInheritFill().getShdwBkgndTrans().getValue());
System.out.println(shape.getInheritFill().getShdwForegnd().getValue());
System.out.println(shape.getInheritFill().getShdwForegndTrans().getValue());
System.out.println(shape.getInheritFill().getShdwPattern().getValue());
}