Hi,
In a application, I need to know page count of a Excel file through SDK/C++.
It works for some file for failed for other files. I upload a sample file
named 3pages-libre.xlsx
<http://nabble.documentfoundation.org/file/n4187912/3pages-libre.xlsx>
Here is my code snippet:
Reference< XMasterPagesSupplier> xMasterPagesSupplier(myDocument,
UNO_QUERY);
Reference< XDrawPages > xDrawPages = xDrawPageSupplier->getDrawPages();
Reference< XIndexAccess > xIndex( xDrawPages, UNO_QUERY);
int pageCount = xIndex->getCount();
Thanks for any help!
Shawn