Can anybody help me use the API?
There is a service called com.sun.star.text.TextField.PageCount -
http://api.openoffice.org/docs/common/ref/com/sun/star/text/textfield/Pa
geCount.html - that says it should show me the page count of the
document.
However, I can't figure out how to get the value of the page count. I
believe it's a short, but how do I cast it, retrieve it, etc...?
I've tried this, to no avail...
Object pageCount =
xDocMSF.createInstance("com.sun.star.text.TextField.PageCount" );
XPropertySet pageCountPS = (XPropertySet) UnoRuntime.queryInterface(
XPropertySet.class, pageCount );
Aaron
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]