> > Unfortunately ChartDocument does not support XDrawPageSupplier,
> > at least that's what UNO API document states:
> > http://api.openoffice.org/docs/common/ref/com/sun/star/chart/ChartDocument.html
> >
> > Or did you mean some other ChartDocument?
> >
>
> No, the documentation is incomplete there.

Thanks Ingrid,

I've been able to solve my task by doing
com.sun.star.chart.XChartDocument aChartDocument = UnoRuntime.queryInterface(
    com.sun.star.chart.XChartDocument.class,
(UnoRuntime.queryInterface(XEmbeddedObjectSupplier.class,
chart)).getEmbeddedObject());
XDrawPageSupplier drawPageSupplier =
UnoRuntime.queryInterface(XDrawPageSupplier.class, aChartDocument);

To make sure that this approach is not something 'non-official' and
will not break with the next release documentation should reflect it.
So I filed a bug: http://www.openoffice.org/issues/show_bug.cgi?id=109765

Thanks again,
Oleg

Reply via email to