OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Get the number of the current page

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
eduzs
OOo Advocate
OOo Advocate


Joined: 07 Feb 2005
Posts: 356
Location: RJ, BRAZIL

PostPosted: Tue Apr 26, 2005 8:57 am    Post subject: Get the number of the current page Reply with quote

How can I get the current page number of a Write document?

msgbox "The current page number is " + PageNum

Thanx
Back to top
View user's profile Send private message
Cybb20
Super User
Super User


Joined: 02 Mar 2004
Posts: 1569
Location: Frankfurt, Germany

PostPosted: Tue Apr 26, 2005 2:37 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
eduzs
OOo Advocate
OOo Advocate


Joined: 07 Feb 2005
Posts: 356
Location: RJ, BRAZIL

PostPosted: Tue Apr 26, 2005 2:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
ykcim
General User
General User


Joined: 15 Jul 2003
Posts: 21

PostPosted: Thu Apr 28, 2005 3:09 am    Post subject: Reply with quote

oDoc = ThisComponent
oCursor = oDoc.CurrentController.getViewCursor()
oPage=oCursor.getPage()


best regards
Michael
Back to top
View user's profile Send private message Visit poster's website
eduzs
OOo Advocate
OOo Advocate


Joined: 07 Feb 2005
Posts: 356
Location: RJ, BRAZIL

PostPosted: Fri Apr 29, 2005 8:43 am    Post subject: Reply with quote

Thanks, with this I can make my macro print current page.

Works perfectly, thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group