| View previous topic :: View next topic |
| Author |
Message |
Monique Newbie

Joined: 11 May 2006 Posts: 3 Location: Belgium
|
Posted: Thu May 11, 2006 1:59 am Post subject: extract a date from a template to put it into a msgbox |
|
|
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 , 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 , 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.
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.
 _________________ monique |
|
| Back to top |
|
 |
noranthon Super User

Joined: 07 Jul 2005 Posts: 3318
|
Posted: Thu May 11, 2006 2:32 am Post subject: |
|
|
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 |
|
 |
Monique Newbie

Joined: 11 May 2006 Posts: 3 Location: Belgium
|
Posted: Thu May 11, 2006 2:55 am Post subject: |
|
|
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.  _________________ monique |
|
| Back to top |
|
 |
noranthon Super User

Joined: 07 Jul 2005 Posts: 3318
|
Posted: Thu May 11, 2006 11:51 pm Post subject: |
|
|
| You may find something in this thread. |
|
| Back to top |
|
 |
Monique Newbie

Joined: 11 May 2006 Posts: 3 Location: Belgium
|
Posted: Fri May 12, 2006 12:25 am Post subject: |
|
|
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 |
|
 |
|