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

extract a date from a template to put it into a msgbox

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


Joined: 11 May 2006
Posts: 3
Location: Belgium

PostPosted: Thu May 11, 2006 1:59 am    Post subject: extract a date from a template to put it into a msgbox Reply with quote

Hallo,

I'm not an expert on OO nor on Macro's but I managed anyway to create a template with a fill in format Smile , these data will be put in an Calc form later but for the moment i want to test it by sending it into a Msgbox.
Most of my fields are ok, except for the Dates Embarassed , i have 2 dates in my template :1 named DateField and the 2th DateField1, i would like to get them from the template and appear on the screen as an normal date ex. 11/05/2006. Confused
I have looked everywhere in the MacroForum but i can not find a real sollution to my problem as most are either reverse or extracted from Calc sheets.

So if anybody can help me with this, that would be very nice.
Wink
_________________
monique
Back to top
View user's profile Send private message
noranthon
Super User
Super User


Joined: 07 Jul 2005
Posts: 3318

PostPosted: Thu May 11, 2006 2:32 am    Post subject: Reply with quote

If you are talking about a spreadsheet cell, the method .getString would get the date as it displays. It's not clear to me what you have and what you want to get.

You need to say what kind of template you mean - Calc, Writer, etc.
Back to top
View user's profile Send private message
Monique
Newbie
Newbie


Joined: 11 May 2006
Posts: 3
Location: Belgium

PostPosted: Thu May 11, 2006 2:55 am    Post subject: Reply with quote

i'm talking about a template in write and that seems to be the tricky thing as most people know for calc but not for write. Sad
_________________
monique
Back to top
View user's profile Send private message
noranthon
Super User
Super User


Joined: 07 Jul 2005
Posts: 3318

PostPosted: Thu May 11, 2006 11:51 pm    Post subject: Reply with quote

You may find something in this thread.
Back to top
View user's profile Send private message
Monique
Newbie
Newbie


Joined: 11 May 2006
Posts: 3
Location: Belgium

PostPosted: Fri May 12, 2006 12:25 am    Post subject: Reply with quote

Many thanks for the info, but my problem is not the transfer of the document but the transfer of the info of a "date" and to show it as a "date"
_________________
monique
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