Writer: Get currently displayed page number

Hi,

Can anyone help me with this?
I still haven't found a way.
I should be able to translate most Basic code, so don't let my use of C++ stop you from suggesting ideas :slight_smile:

Thomas wrote:

I'm trying to get the current page number of where the document is shown (scrolled to), not where the cursor is located.
(How) is this possible with the API?

I already tried accessing the status bar and extract the localized text "Page X of Y" but since I'm removing it to have less visual clutter, I cannot access it (plus I would have to parse it, locale dependent).

P.S.: I'm using C++

Regards,
Thomas