Hi Doan Nguyen Van,

Am 26.05.10 17:20, Doan Nguyen Van schrieb:
Ingrid,

If your first method gives you the wanted result, why not using it?

Because the shapes (of draw page of the sheet) don't have any references to TableChart or ChartDocument, so it is not possible to understand which TableChart some shape is related to.

The second method cannot lead to the wanted result as the chart itself
does not know anything about a surrounding spreadsheet page.

The is no way to get position of a chart?


Not directly from the chart itself.
What you can do is to remind the name of the chart and then get the shape via 
that name from the spreadsheet.
To get the correct shape search through all shapes. If XShapeDescriptor::getShapeType equals "com.sun.star.drawing.OLE2Shape" check the property 'PersistName'.

Hope that helps,
Ingrid

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@graphics.openoffice.org
For additional commands, e-mail: dev-h...@graphics.openoffice.org

Reply via email to