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

XTextField

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
rodion
General User
General User


Joined: 23 Sep 2006
Posts: 9

PostPosted: Wed Apr 25, 2007 5:08 am    Post subject: XTextField Reply with quote

Hi,
I am writing in C++ and I am trying to retrieve XTextField, where I want to keep a page number. Below is my code, which doesn't work.
Code:

Reference< XInterface > xInterface = rOfficeServiceManager->createInstance(OUString::createFromAscii( "com.sun.star.text.TextField.PageNumber" ));
Reference< XTextField > xPageNumField (xInterface, UNO_QUERY);

Is anyone has an idea, how to solve the problem?
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