Hello Ariel,

I added this at the code above:

css::uno::Reference < css::drawing::XDrawPagesSupplier >
rDrawDoc(xcomponent, css::uno::UNO_QUERY_THROW);

// query the XDrawPages Interface
css::uno::Reference < css::drawing::XDrawPages > rDrawPages =
rDrawDoc->getDrawPages();

// query the XIndexAccess Interface
css::uno::Reference< css::container::XIndexAccess >
rPageIndexAccess(rDrawPages, css::uno::UNO_QUERY_THROW);

css::uno::Any DrawPage = rPageIndexAccess->getByIndex(0);

But now I get this error:
error: 'xComponent' was not declared in this scope

I would like to know how to declare it.

Reply via email to