Welcome to NeoOffice developer notes and announcements
NeoOffice
Developer notes and announcements
 
 

This website is an archive and is no longer active
NeoOffice announcements have moved to the NeoOffice News website


Support
· Forums
· NeoOffice Support
· NeoWiki


Announcements
· Twitter @NeoOffice


Downloads
· Download NeoOffice


  
NeoOffice :: View topic - Are 'global' macros for Date and Time fields possible?
Are 'global' macros for Date and Time fields possible?
 
   NeoOffice Forum Index -> NeoOffice Releases
View previous topic :: View next topic  
Author Message
yoxi
Cipher


Joined: Sep 07, 2004
Posts: 1799
Location: Dawlish, Devon

PostPosted: Sun May 23, 2010 5:10 am    Post subject:

What I meant was, your macro could begin by creating a new field, then selecting it and deleting it - and then running the important part of the macro that has the formatting in it. I don't honestly know if this would work to trigger the OOo code Patrick's workaround is working around, but it's worth a try, and wouldn't slow the macro down much, I think.

If it works, then you just need to run the macro, which will work fine in a new or an existing doc, and you wouldn't have to create-and-delete the extra field yourself first using keyboard/menus, and she'll be apples Smile.
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Sun May 23, 2010 12:41 pm    Post subject:

yoxi wrote:
What I meant was, your macro could begin by creating a new field, then selecting it and deleting it - and then running the important part of the macro that has the formatting in it. I don't honestly know if this would work to trigger the OOo code Patrick's workaround is working around, but it's worth a try, and wouldn't slow the macro down much, I think.


Unfortunately, that will not work as the OpenOffice.org bug will occur in every date or time field that you insert from a macro until after you have manually inserted a date or time field.

Essentially, the bug is that some necessary document state setting has to be enabled for the macro to work and, so far, the only action that switches that macro on is manually inserting a date or time field.

Patrick
Back to top
yoxi
Cipher


Joined: Sep 07, 2004
Posts: 1799
Location: Dawlish, Devon

PostPosted: Sun May 23, 2010 11:51 pm    Post subject:

Yeah, I thought that might be the case, but was hoping for the best.
Back to top
Display posts from previous:   
   NeoOffice Forum Index -> NeoOffice Releases All times are GMT - 7 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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
You cannot attach files in this forum
You cannot download files in this forum

Powered by phpBB © 2001, 2005 phpBB Group

All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © Planamesa Inc.
NeoOffice is a registered trademark of Planamesa Inc. and may not be used without permission.
PHP-Nuke Copyright © 2005 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.