| View previous topic :: View next topic |
| Author |
Message |
eduzs OOo Advocate


Joined: 07 Feb 2005 Posts: 356 Location: RJ, BRAZIL
|
Posted: Tue Apr 26, 2005 8:57 am Post subject: Get the number of the current page |
|
|
How can I get the current page number of a Write document?
msgbox "The current page number is " + PageNum
Thanx |
|
| Back to top |
|
 |
Cybb20 Super User


Joined: 02 Mar 2004 Posts: 1569 Location: Frankfurt, Germany
|
Posted: Tue Apr 26, 2005 2:37 pm Post subject: |
|
|
eduzs: This has been asked numerous times before. It has been explained in quite some threads in this forum.
Please use the site's search function.
Christian _________________ - Knowledge is Power - |
|
| Back to top |
|
 |
eduzs OOo Advocate


Joined: 07 Feb 2005 Posts: 356 Location: RJ, BRAZIL
|
Posted: Tue Apr 26, 2005 2:50 pm Post subject: |
|
|
I try to find "page number" , "current page"....
I didn't find any past post regarding this.
The near I found is to insert a field "PageNumber" in a document, is not this what I want, I need the current page number to make a macro that will print the current page.
Thanks |
|
| Back to top |
|
 |
ykcim General User

Joined: 15 Jul 2003 Posts: 21
|
Posted: Thu Apr 28, 2005 3:09 am Post subject: |
|
|
oDoc = ThisComponent
oCursor = oDoc.CurrentController.getViewCursor()
oPage=oCursor.getPage()
best regards
Michael |
|
| Back to top |
|
 |
eduzs OOo Advocate


Joined: 07 Feb 2005 Posts: 356 Location: RJ, BRAZIL
|
Posted: Fri Apr 29, 2005 8:43 am Post subject: |
|
|
Thanks, with this I can make my macro print current page.
Works perfectly, thanks! |
|
| Back to top |
|
 |
|