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 -- View this message in context: http://nabble.documentfoundation.org/Issue-about-page-count-of-spreadsheet-file-tp4187912.html Sent from the Users mailing list archive at Nabble.com. -- To unsubscribe e-mail to: [email protected] Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/ Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette List archive: http://listarchives.libreoffice.org/global/users/ All messages sent to this list will be publicly archived and cannot be deleted
