Hi Amjad,
Thanks for your information.
How can I convert picture type to shape type in Java.
Exactly what happened is that I have C# code where to there is direct convertion has done like this.
private com.aspose.words.Shape ConvertPictureToShape(com.aspose.cells.Picture excelPicture, Document doc)
{
//Create new Shape
com.aspose.words.Shape wordsShape=null;
try
{
wordsShape = new com.aspose.words.Shape(doc, com.aspose.words.ShapeType.IMAGE);
//Set image
wordsShape.getImageData().setImage(excelPicture.toString());
//Import Picture properties inhereted from Shape
ImportShapeProperties(wordsShape, (Shape)excelPicture);
}
catch(Exception e)
{
e.printStackTrace();
}
return wordsShape;
}
Actually the bolded thing is giving me error.
It is saying that you can not convert picture type to Shape directly. I have ImportShapeProperties method.
The same kind of error is coming for TextBox to Shape
Can you help me?
Thanks
madhu